Re: Unwinding the containment hierarchy of a reference
Re: Unwinding the containment hierarchy of a reference
- Subject: Re: Unwinding the containment hierarchy of a reference
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 08 Dec 2004 09:05:01 -0800
On 12/7/04 11:41 PM, "Paul Berkowitz" <email@hidden> wrote:
> Doing a 'run script' on the whole script just puts
> you back where you started. Otherwise you'd have to know to use 'of' the
> separate the objects. That might actually work, since even using alternate
> syntax:
>
> tell application "TextEdit"
> set objRef to a reference to word 12 of document 2
> end tell
>
>
> still produces the very same refStr:
> --> "word 12 of document 2 of application \"TextEdit\""
>
> evidently the canonical syntax.
Sorry. That made no sense. What I meant to say was:
tell application "TextEdit"
set objRef to a reference to document 2's word 12
end tell
still produces the very same refStr:
--> "word 12 of document 2 of application \"TextEdit\""
so extracting text items with " of " as delimiter still works even when you
start out from 's-type syntax.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden