Mkdir700's Note

Mkdir700's Note

Command

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

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

在 MacOS 上,使用 <code>osascript</code> 命令行工具可以获取应用程序的 bundle identifier,其中 <code>osascript -e 'id of app "Obsidian"' </code> 用于获取名为 "Obsidian" 应用程序的唯一标识符。Bundle identifier 是一个用于标识应用程序的唯一字符串,通常类似于反向域名格式。如果应用程序已安装并正在运行,则该命令将返回其 bundle identifier,否则可能会出现找不到应用程序的错误信息。
296
0
0
2024-07-17