Mkdir700's Note

Mkdir700's Note

Command

在 MacOS 上获取应用的捆绑标识符(Bundle identifier)

在 MacOS 上获取应用的捆绑标识符(Bundle identifier)

在 MacOS 上,使用 `osascript` 命令可以执行 AppleScript 和其他 OSA 语言脚本。通过 `-e` 选项在命令行中输入脚本代码,比如获取应用程序的 bundle identifier。Bundle identifier 是标识应用程序的唯一字符串,通常格式为 `com.companyname.appname`。执行 `osascript -e 'id of app "Obsidian"'` 命令可以获取应用程序 "Obsidian" 的 bundle identifier,如果应用已安装并运行,将返回对应值,否则可能出现错误信息。
491
0
0
2024-07-17