• 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: Unwinding the containment hierarchy of a reference
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Unwinding the containment hierarchy of a reference
      • From: Michelle Steiner <email@hidden>
References: 
 >Unwinding the containment hierarchy of a reference (From: "Scott Babcock" <email@hidden>)

  • Prev by Date: Re: How to kill a process using AS
  • Next by Date: Re: Unwinding the containment hierarchy of a reference
  • Previous by thread: Re: Unwinding the containment hierarchy of a reference
  • Next by thread: Re: Unwinding the containment hierarchy of a reference
  • Index(es):
    • Date
    • Thread