use this snippet to get bundle id or package name of an app in macos ``` osascript -e 'id of app "App Name"' ```