Get bundle identifier for macOS app

osascript -e 'id of app "Name of App"'