• 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: Property lists and System Events (was: no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:
http://www.mactech.com/articles/mactech/Vol.22/22.03/StoringandAccessingData/index.html


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

  • Follow-Ups:
    • Re: Property lists and System Events (was: no subject)
      • From: Luther Fuller <email@hidden>
    • Re: Property lists and System Events (was: no subject)
      • From: Shane Stanley <email@hidden>
References: 
 >Re: (no subject) (From: Shane Stanley <email@hidden>)
 >Re: (no subject) (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Re: Property lists and System Events (was: no subject)
  • Previous by thread: Re: (no subject)
  • Next by thread: Re: Property lists and System Events (was: no subject)
  • Index(es):
    • Date
    • Thread