Re: XML handling
Re: XML handling
- Subject: Re: XML handling
- From: Christopher Stone <email@hidden>
- Date: Wed, 18 Nov 2009 17:47:45 -0600
On Nov 17, 2009, at 18:20, Joshua Whalen wrote: ______________________________________________________________________
Hey Folks,
I'll second Joshua on this.
For some time now I've been using the Finder to get the short version string of applications for a script I use regularly. Unfortunately the Finder and System Events don't always produce the string that can be seen readily in the Finder's Get-Info dialog.
Parsing the application bundle's Info.plist for the value of CFBundleShortVersionString seems like the more reliable way to go and using information from the recently posted link to Ben Waldie's article at MacTech let me do this neatly with System Events.
tell application "System Events" tell property list file fPath tell contents set shortVersionString to value of property list item "CFBundleShortVersionString" end tell end tell end tell
Serendipity. :)
|
_______________________________________________
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