Re: Getting an app's identifier
Re: Getting an app's identifier
- Subject: Re: Getting an app's identifier
- From: Paul Skinner <email@hidden>
- Date: Fri, 30 May 2003 09:57:45 -0400
And this works on your box?
With what OSAXen coercions active?
Choose app returns an application name not a path. And the rest of the
code blows up with choose file.
Hmmm looks good though : )
On Friday, May 30, 2003, at 04:31 AM, John Stewart wrote:
set a to choose application
set bID to (do shell script "defaults read " & quoted form of POSIX
path of a & "/Contents/Info CFBundleIdentifier")
return bID
There is a second form of this which returns the plist info, I'll
leave it to you to figure out how to parse it.
set a to choose application
set bID to (do shell script "grep -A1 CFBundleIdentifier " & quoted
form of POSIX path of a & "/Contents/Info.plist")
_______________________________________________
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.