Re: XML - System Events vs XMLlib
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|:{…
|
_______________________________________________
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