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: "Scott Babcock" <email@hidden>
- Date: Wed, 15 Dec 2004 17:55:02 -0800
- Thread-topic: Unwinding the containment hierarchy of a reference
There was one item related to this topic that I hadn't resolved: How to
get the friendly name for application-specific class elements in your
reference.
The solution is to use the target application to perform the conversion:
set appStr to "application \"Microsoft Word\""
set classStr to "<class 1003>"
set appRef to run script appStr
--> application "Microsoft Word"
tell appRef
set className to run script classStr & " as text"
--> "active document"
end tell
So, the string "<class 1003> of application \"Microsoft Word\""
becomes "active document of application \"Microsoft Word\"",
which is the most human-readable form of this expression.
_______________________________________________
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