Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,我在控制台“open -b com.apple.dt.Xcode”中运行,open 如何确定要启动的程序?
如果你想要编程路径,你可以使用applescript。
osascript -e "POSIX path of (path to application id \"com.apple.dt.Xcode\")"
Bundle 标识符通常在应用程序的 app bundle 中声明Info.plist。这些值在 OS X 中通过各种方式识别和注册,并在Launch Services数据库中进行管理。阅读启动服务编程指南以获取详细信息,特别是有关应用程序注册的部分。
Info.plist
Launch Services