Re: 'info for' braindead about .app packages
Re: 'info for' braindead about .app packages
- Subject: Re: 'info for' braindead about .app packages
- From: Walter Ian Kaye <email@hidden>
- Date: Wed, 5 May 2004 23:14:53 -0700
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.
thanks,
-boo
_______________________________________________
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.