• 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: 'info for' braindead about .app packages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'info for' braindead about .app packages


  • Subject: Re: 'info for' braindead about .app packages
  • From: Rob Jorgensen <email@hidden>
  • Date: Thu, 6 May 2004 02:33:55 -0400

At 11:14 PM -0700 5/5/04, Walter Ian Kaye wrote:
At 06:28p -0700 05/05/2004, Christopher Nebel didst inscribe upon an electronic papyrus:

On May 5, 2004, at 4:49 PM, Walter Ian Kaye wrote:

It seems that 'info for' fails to get version info on .app packages.

And how should I get the 'short version' for an .app package?

As of 10.3 (Panther), just say "short version of (info for ...)". Prior to that, you can use Rob's trick:

set c to "defaults read '/Applications/iCal.app/Contents/Info' CFBundleShortVersionString"
set s_ver to do shell script c

'k, now I check the system version so I can use the speedier command. Speaking of which, turns out it's actually much faster to read and parse the XML file than to use do shell script/defaults.

Yep, I don't doubt that. I haven't done any testing but based on my overall experience and the feedback of other scripters, do shell script can be pretty sluggish (even when issuing simple shell commands that don't take a great deal of time to execute).

-- Rob
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: 'info for' braindead about .app packages
      • From: Joseph Weaks <email@hidden>
References: 
 >'info for' braindead about .app packages (From: Walter Ian Kaye <email@hidden>)
 >Re: 'info for' braindead about .app packages (From: Christopher Nebel <email@hidden>)
 >Re: 'info for' braindead about .app packages (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: 'info for' braindead about .app packages
  • Next by Date: Re: 'info for' braindead about .app packages
  • Previous by thread: Re: 'info for' braindead about .app packages
  • Next by thread: Re: 'info for' braindead about .app packages
  • Index(es):
    • Date
    • Thread