• 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: Getting an app's identifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Getting an app's identifier
      • From: Rob Jorgensen <email@hidden>
References: 
 >Re: Getting an app's identifier (From: John Stewart <email@hidden>)

  • Prev by Date: Re: Print current page
  • Next by Date: Item delimiters
  • Previous by thread: Re: Getting an app's identifier
  • Next by thread: Re: Getting an app's identifier
  • Index(es):
    • Date
    • Thread