Ehcho.com

Retrieve bundle identifier

22 Sep 2013 | Last updated: Never

All Mac OS X applications have bundle identifiers. If you need to find a bundle identifier for a particular application, enter the following command into Terminal followed by return.

osascript -e 'id of app "AppName"'

For example:

osascript -e 'id of app "Safari"'

Source →