• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Preferred AS editing tools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preferred AS editing tools


  • Subject: Re: Preferred AS editing tools
  • From: Emmanuel LEVY <email@hidden>
  • Date: Thu, 28 Jul 2011 23:50:45 +0200

Latest = beta, now publicly available in the regular download section.

Emmanuel

On Jul 28, 2011, at 11:34 PM, Bruce Robertson wrote:


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 (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ 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
  • Follow-Ups:
    • Re: Preferred AS editing tools
      • From: Bruce Robertson <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>)
 >Re: Preferred AS editing tools (From: Bruce Robertson <email@hidden>)

  • Prev by Date: Re: Preferred AS editing tools
  • Next by Date: Re: Preferred AS editing tools
  • Previous by thread: Re: Preferred AS editing tools
  • Next by thread: Re: Preferred AS editing tools
  • Index(es):
    • Date
    • Thread