I create an NSAppleScript to read the current window name and URL from Safari
and return it as a record [1]. When I execute it, I get a nice-looking
NSAppleEventDescriptor with the following -description (line breaks added for
readability):
<NSAppleEventDescriptor: {
'usrf':
[
'utxt'("aNam"),
'utxt'("Apple"),
'utxt'("aUrl"),
'utxt'("http://www.apple.com")
] }>
As you can see, the desired keys and values are all in there. How can I get
them out? (Spent an hour reading documentation to no avail.)
Thanks,
Jerry Krinock
[1]
tell application "Safari"
set aName to name of front document
set aUrl to URL of front document
end tell
set aRecord to {aNam:aName, aUrl:aUrl}
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]