Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XML - System Events vs XMLlib



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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.