Bundle

Bundle IDs

Extract the bundle ID from a bundle with:

mdls -name kMDItemCFBundleIdentifier /Applications/Some.app

Launch new instance by bundle ID

Useful for e.g. Alacritty, where launching the app via Spotlight will simply focus the existing instance, even if it's on another Space:

open -nb org.Alacritty --args --working-directory (pwd)