Mkdir700's Note

Mkdir700's Note

wiki

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

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

在 MacOS 上,使用 <code>osascript</code> 命令行工具和<code>-e</code>选项可以获取应用程序的 bundle identifier。Bundle identifier 是一个唯一的字符串,用于标识应用程序,格式通常为<code>com.companyname.appname</code>。执行命令<code>osascript -e 'id of app &quot;Obsidian&quot;'</code>可以返回应用程序&quot;Obsidian&quot;的 bundle identifier,如<code>md.obsidian</code>。如果应用程序不存在或未运行,则可能返回错误信息。
407
0
0
2024-07-17