Re: Preferred AS editing tools
Re: Preferred AS editing tools
- Subject: Re: Preferred AS editing tools
- From: Emmanuel LEVY <email@hidden>
- Date: Thu, 28 Jul 2011 22:59:30 +0200
There have been very good posts about the editing tools, and also the
key-value pairs arrays, aka associative arrays.
I have a piece of technical news about key-value pairs: Satimage's
XMLLib now supports the following new syntax.
set p to PlistNew -- this makes an empty dictionary, and has always
done so
PlistSet p to {firstname: "John", lastname: "Doe", age: 28} -- this
has always worked: records are AppleScript's structure for associative
arrays.
PlistSet p to {"firstname", "John", "lastname", "Doe", "age", 28,
"what's his job???", "Bus driver"} -- now you can easily feed a plist
with arbitrary keys.
Emmanuel
_______________________________________________
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