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: Andrew Oliver <email@hidden>
- Date: Tue, 07 Dec 2004 13:27:00 -0800
On 12/7/04 1:16 PM, "Scott Babcock" <email@hidden> wrote:
> No, what I'm looking for is a way to determine that document 2 is the
> container of word 12, and that application "TextEdit" is the container
> of document 2.
>
> This information is encoded in the reference; otherwise, AppleScript
> would have no way to resolve it. The question is: Can this containment
> information be extracted from the reference in any reasonable way?
I don't think you can get there from here.
If you work it the other way around and assuming word 12 is 'foo', how do
you expect to translate a string 'foo' to a reference in a document. There
may be multiple occurrences of 'foo' in multiple documents. Or there may be
none. How do you resolve that one? The first occurrence? The first document?
Who defines which document is first?
'words' don't have 'document' parent properties so you can't walk back up
that tree.
Andrew
:)
_______________________________________________
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