• 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: has <email@hidden>
  • Date: Thu, 30 Aug 2007 14:39:07 +0100

Wayne Melrose wrote:

I tried to find some examples of System Events parsing a plist file..
[...]
How do I I search for "creation" and return the string value?

How to I search for "happy" and return "false"?

tell application "System Events"
tell contents of property list file "/path/to/your.plist"
{value of property list item "creation", value of property list item "happy"}
end tell
end tell
--> {"2007:06:12 20:13:52", false}


HTH

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

_______________________________________________
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
  • Prev by Date: Re: "Save file with" dialog box
  • Next by Date: Re: "Save file with" dialog box
  • Previous by thread: Re: XML - System Events vs XMLlib
  • Next by thread: Re: XML - System Events vs XMLlib
  • Index(es):
    • Date
    • Thread