• 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: Shane Stanley <email@hidden>
  • Date: Thu, 27 Sep 2007 18:53:59 +1000
  • Thread-topic: Setting Pages Insertion point (was Setting TextEdit S( )

On 27/9/07 6:23 PM, "Axel Luttgens" <email@hidden> wrote:

> Well, maybe are you both right... ;-)

Not really...
>
> Having a look at the dictionary of Pages 2:
>
>     application n [inh. application; see also Standard Suite] : The Pages
>         application.
>         [...]
>         selection (selection-object) : The current selection in the frontmost
>             document.
>
>     document n [inh. document; see also Standard Suite] : A Pages document.
>         [...]
>         selection (selection-object) : The current selection or insertion
> point.

That's just sloppy wording; the selection is a property that returns a
reference to what's selected, which may be text, or may be just an insertion
point.

Selection is a property; the _class_ of the result may be insertion point
(or text, or word, or whatever).

This is all covered in Tech Note 2106.

> So, it looks like Page's scripting model closely follows the GUI behavior.
> In a document, one has either an insertion point or a selection

No -- one has a selection, which _may_ in fact be of the class insertion
point. There is no "or" involved. If you have a document with, say, 10
characters, it has 11 insertion points as elements, regardless of what, if
anything, is selected.

> Let's try a small experiment.

All of which is consistent with the above. You might also try setting the
contents of an insertion point.

--
Shane Stanley <email@hidden>
AppleScript Pro Florida, Feb 2008 <http://scriptingmatters.com/aspro>


 _______________________________________________
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

  • Follow-Ups:
    • Re: Setting Pages Insertion point (was Setting TextEdit S( )
      • From: Axel Luttgens <email@hidden>
References: 
 >Re: Setting Pages Insertion point (was Setting TextEdit S( ) (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: Setting Pages Insertion point (was Setting TextEdit S( )
  • Next by Date: Re: Deleting address book fields
  • Previous by thread: Re: Setting Pages Insertion point (was Setting TextEdit S( )
  • Next by thread: Re: Setting Pages Insertion point (was Setting TextEdit S( )
  • Index(es):
    • Date
    • Thread