Re: Property lists and System Events (was: no subject)
Re: Property lists and System Events (was: no subject)
- Subject: Re: Property lists and System Events (was: no subject)
- From: hd <email@hidden>
- Date: Thu, 1 Apr 2010 01:33:35 +0100
On 1 Apr 2010, at 00:59, Luther Fuller wrote:
I'm now confused, but suspect that System Events does not know what a property list file is.
On my 10.6.3 (and I suspect much earlier) it does if you feed it a POSIX path. To illustrate, try this on an existing plist file:
set plist_path to POSIX path of (choose file of type "plist") tell application "System Events" tell property list file plist_path to get text of contents end tell
This returns the XML.
"get value of contents" returns the plist as a record.
Text and value are editable, according to the System Events dictionary. Not sure how to: this by Ben Waldie is old but may help:
H |
_______________________________________________
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