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: Christopher Nebel <email@hidden>
- Date: Tue, 7 Dec 2004 16:13:42 -0800
On Dec 7, 2004, at 12:44 PM, Scott Babcock wrote:
Given an arbitrary AppleScript object reference, is there a reasonable
way to determine the object's containment hierarchy? For example:
tell application "TextEdit"
set x to a reference to word 12 of document 2
end tell
Is there a programmatic way to determine that word 12 is contained by
document 2, which is contained by application "TextEdit"?
Most other people didn't understand what you were talking about, but I
did. I think. Assuming you're asking for what I think you're asking
for, the answer is "no" -- object specifiers are not decomposable
objects from AppleScript's point of view. I have heard this request
before, though -- oddly enough, it came up earlier today. You could, I
suppose, write a scripting addition that would do the job, since there
*is* a decomposable structure to specifiers, just not one that standard
AppleScript lets you get at.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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