How to find an app's id on macOS


Sometimes, you need to know the app id, like configuring the window manager to always put Slack on workspace number 6. To get the app id, you can use mdls and just give it the path to the app directory:

$ mdls -name kMDItemCFBundleIdentifier -r /Applications/Slack.app
com.tinyspeck.slackmacgap

Licensed under CC BY Creative Commons License ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ 🎥 youtube.com/@skybert