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

Unwinding the containment hierarchy of a reference (revisited)


  • Subject: Unwinding the containment hierarchy of a reference (revisited)
  • From: "Scott Babcock" <email@hidden>
  • Date: Tue, 8 Feb 2005 16:19:19 -0800
  • Thread-topic: Unwinding the containment hierarchy of a reference (revisited)

I've been working with System Events and I need a way to convert an
AppleScript object reference into text suitable for handing to 'run
script'.

The goal is to add text so that I can run the revised code to check for
the existence of named or indexed child elements or produce a filtered
list of child references.

I've been using the method of wrapping the reference in a record, trying
to coerce to text, and capturing the error message. This works until I
send it an object reference that contains Unicode selectors. The reason
Unicode is a problem here is that the error text is 'styled text', which
can only represent MacRoman characters. All of the Unicode-only
characters in the selectors get translated to '?', which is entirely
useless.

Is there a more graceful way to convert references to text? Can I send
System Events object references to another application without System
Events getting involved? (I made a rough attempt at this, and System
Events kept getting in the way...)

I don't need to have the terminology resolved to friendly text; I
actually prefer raw codes in this context. Having the ability to process
"foreign" object references will be useful for other tasks as well, like
getting a reference to an object's parent.
 _______________________________________________
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

  • Prev by Date: Re: is there an application bundle equivalent on the PC ?
  • Next by Date: Re: DVDSP and applescript
  • Previous by thread: Re: HOWTO check if file is completly copied - OS9 (Emmanuel)
  • Next by thread: Re: Unwinding the containment hierarchy of a reference (revisited)
  • Index(es):
    • Date
    • Thread