• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting Pages Insertion point (was Setting TextEdit S( )
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Setting Pages Insertion point (was Setting TextEdit Š ) (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Setting Pages Insertion point (was Setting TextEdit S( )
  • Next by Date: Re: Setting Pages Insertion point (was Setting TextEdit S( )
  • Previous by thread: Re: Setting Pages Insertion point (was Setting TextEdit S( )
  • Next by thread: Missing Posts?
  • Index(es):
    • Date
    • Thread