比较来自世界各地的卖家的域名和 IT 服务价格

如何获得 Bundle ID 应用程序 Mac?

我想使用模块 Python 和
atomac

启动应用程序 macOS, 如以下情况:


atomac.launchAppByBundleID//
app_win = atomac.getAppRefByBundleId/app_bundle_ID/


但我不知道如何得到 Bundle ID /
app_bundle_ID

/ 应用程序。
已邀请:

二哥

赞同来自:

我用两种方法来获得 bundler ID:


osascript -e 'id of app "SomeApp"'





mdls -name kMDItemCFBundleIdentifier -r SomeApp.app

詹大官人

赞同来自:

如果您只需要启动应用程序,请查看文件 info.plist 应用程序。 文件位于应用程序中 bundle 在目录中 Contents. 它适用于许多应用程序。

要回复问题请先登录注册