Re: application file id?
Re: application file id?
- Subject: Re: application file id?
- From: Christopher Nebel <email@hidden>
- Date: Mon, 5 May 2003 10:22:35 -0700
On Monday, May 5, 2003, at 09:39 AM, Jeff Ganyard wrote:
Application file id also understands bundle identifiers, not just
signatures. (I forget exactly when this was implemented, but it's
been a while.) For example:
tell application "Finder" to get application file id
"com.apple.calculator" as string
--> "Jaguar:Applications:Calculator.app"
That's good to know! I must have overlooked it in release notes. I
noticed that 'info for' does not return the bundle identifier. is
there some way to discover the identifier via script?
Not as such, no, but you could fake it with "do shell script":
set a to choose application as alias
do shell script "grep -A1 CFBundleIdentifier " & quoted form of POSIX
path of a & "/Contents/Info.plist"
The last line will contain the bundle identifier. Getting *exactly*
the bundle identifier is left as an exercise for the reader.
--Chris Nebel
Apple Development Tools
_______________________________________________
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.