• 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: XML - System Events vs XMLlib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML - System Events vs XMLlib


  • Subject: Re: XML - System Events vs XMLlib
  • From: Philip Aker <email@hidden>
  • Date: Fri, 31 Aug 2007 15:04:18 -0700

On 2007-08-31, at 08:57:01, has wrote:

This appears to do what you want, caveat that the lack of official System Events documentation means that I've no idea if this is officially supported behaviour or not:

That solution will only provide happiness under certain conditions. I think I can illustrate with:

set r1 to {Matthew:"Matthew", Mark:"Mark"}
set r2 to run script "{Luke:\"Luke\", John:\"John\"}"
{r1, r2}
--> {{Matthew:"Matthew", Mark:"Mark"}, {luke:"Luke", john:"John"}}

Irrelevant here, and a non-issue in any case: the default lowercasing of identifier names in AERecords is an AppleScript thing; if you need to preserve case, wrap the identifier in pipes.

The following illustrates specifically:

set f to "~/Library/Preferences/com.apple.applescript.plist"
tell application "System Events"
set plf to property list file f
set plist to make new property list item with data plf
value of plist
end tell

--> {|ChooseAppBounds|:"22 87 1024 1476 260 160 200 913 1 2 3", |AppleScriptTextStyles|:{…

Philip Aker
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

References: 
 >Re: XML - System Events vs XMLlib (From: has <email@hidden>)
 >Re: XML - System Events vs XMLlib (From: has <email@hidden>)
 >Re: XML - System Events vs XMLlib (From: Philip Aker <email@hidden>)
 >Re: XML - System Events vs XMLlib (From: has <email@hidden>)

  • Prev by Date: Re: Simple Mail Script Not Working
  • Next by Date: Re: Catch click on dock icon ?
  • Previous by thread: Re: XML - System Events vs XMLlib
  • Next by thread: Re: XML - System Events vs XMLlib
  • Index(es):
    • Date
    • Thread