Last active
November 1, 2023 21:58
-
-
Save detj/0366f12632515fb0b37016daff8b2015 to your computer and use it in GitHub Desktop.
Find bundle identifier of a macOS app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find the bundle identifier of Numbers app | |
codesign -dv /Applications/Numbers.app/ | |
# explanation of the flags used | |
# | |
# -d, --display Display information about the code at the path(s) given. | |
# -v, --verify Requests verification of code signatures | |
# one line to directly extract the bundle identifier using [rg](https://github.com/BurntSushi/ripgrep) | |
codesign -dv /Applications/Numbers.app/ 2>&1 | rg '^Identifier=' --replace "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tested on macOS 14.1 (Sonoma)