Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Preferred AS editing tools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preferred AS editing tools



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

References: 
 >Preferred AS editing tools (From: "Zavatone, Alex" <email@hidden>)
 >Re: Preferred AS editing tools (From: Christopher Stone <email@hidden>)
 >Re: Preferred AS editing tools (From: Emmanuel LEVY <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.