- https://superuser.com/questions/346369/getting-the-bundle-identifier-of-an-os-x-application-in-a-shell-script - `mdls -name kMDItemCFBundleIdentifier -r SomeApp.app` - `lsappinfo info -only bundleid SomeApp` - `/usr/libexec/PlistBuddy -c 'Print CFBundleIdentifier' /Applications/Safari.app/Contents/Info.plist`