Mkdir700's Note

Mkdir700's Note

分类

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

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

在 MacOS 上,使用命令行工具 `osascript -e` 可以获取应用程序的 bundle identifier,通过执行类似 `osascript -e 'id of app "Obsidian"'` 的命令。Bundle identifier 是一个唯一的字符串,用于标识应用程序,类似于反向域名的格式。如果应用程序已安装并运行,命令会返回其 bundle identifier,否则可能会显示错误信息。
339
0
0
2024-07-17