Re: Preferred AS editing tools
Re: Preferred AS editing tools
- Subject: Re: Preferred AS editing tools
- From: Bruce Robertson <email@hidden>
- Date: Thu, 28 Jul 2011 14:34:02 -0700
On Jul 28, 2011, at 1:59 PM, Emmanuel LEVY wrote:
> 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
>
Hm, which version exactly? I get:
error "Incompatible types of 'to' and direct parameters of PlistSet" number -1
Bruce Robertson _______________________________________________
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