Re: names of a record's items
Re: names of a record's items
- Subject: Re: names of a record's items
- From: Axel Luttgens <email@hidden>
- Date: Wed, 09 Apr 2014 18:56:15 +0200
Le 9 avr. 2014 à 17:38, Luther Fuller a écrit :
> [...]
> The "System Events" dictionary contains the "Property List Suite" which looks tantalizing close to doing this.
> [...]
> Either I'm not reading the dictionary correctly or it's broken.
> I found no way to use the Property List Suite to get the name of a record item.
> Still, the dictionary looks like I ought to be able to do this.
Indeed... ;-)
set rec to {a:999, b:"text", c:{1, 2}}
tell application "System Events"
name of property list items of (make new property list item with properties {value:rec})
end tell
--> {"a", "b", "c"}
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden