• 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 handling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

I'm glad this thread got started. I'd been meaning to do this research forever.
______________________________________________________________________

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.  :)

--
Chris

 _______________________________________________
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: XML handling
      • From: Christopher Nebel <email@hidden>
References: 
 >re: XML handling (From: Joshua Whalen <email@hidden>)

  • Prev by Date: Re: Using long lists in a script
  • Next by Date: More date/time stuff
  • Previous by thread: Re: XML handling
  • Next by thread: Re: XML handling
  • Index(es):
    • Date
    • Thread