Getting the bundle identifier of an OS X application

Getting the bundle identifier of an OS X application in a shell script (Super User)

How about reading the bundle identifier from the application's Info.plist file directly using PlistBuddy (8):

/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' /Applications/Safari.app/Contents/Info.plist

I needed to obtain the bundle identifier to setup QuickCursor. This did the trick.

Author: Khürt Williams

Gen X-er near Princeton University in Montgomery Township, New Jersey, with a passion for aquariums, terrariums, technology, and photography. I love hiking in the woods, and my eclectic musical tastes span soca, Afrobeat, calypso, 1990s rap, grunge rock, and alternative genres.

%d bloggers like this: