Re: Setting Pages Insertion point (was Setting TextEdit S( )
Re: Setting Pages Insertion point (was Setting TextEdit S( )
- Subject: Re: Setting Pages Insertion point (was Setting TextEdit S( )
- From: Axel Luttgens <email@hidden>
- Date: Thu, 27 Sep 2007 10:42:05 +0200
I kept this one for a separate mail, as it covers practical matters
rather than conceptual ones.
(sorry for being somewhat pompous...)
From the results of the previous mail, it becomes clear how to set the
selection in Pages.
For example, assuming the same single document opened in Pages:
tell application "Pages"
select insertion point after word 2 of body text of first document
selection
select word 2 of body text of first document
selection
end tell
yields in the log:
tell application "Pages"
select insertion point after word 2 of body text of document 1
get selection
insertion point before character 8 of body text of document
"Sans titre"
select word 2 of body text of document 1
get selection
text from character 5 to character 7 of body text of document
"Sans titre"
end tell
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden