设置不同版本的 Xcode 之间的优先级
在 AppleScript 脚本中,我有命令告诉应用程序“Xcode”,我想使用 Xcode 3,而它现在使用 Xcode 4。
如何在 tell application
命令中指定 Xcode 版本或为 tell application
命令设置不同 Xcode 版本之间的优先级。
不建议 xcode-select
:它仅针对 xcode 控制台工具设置 Xcode 版本之间的优先级。
更新
正如@Red_Menace提到的,我们可以使用.app
文件的路径或应用程序的ID。请说明是否有更好的解决方案(例如设置优先通过名称“Xcode”
访问Xcode 3)。
In AppleScript script I have command tell application "Xcode"
which I want to use Xcode 3, while it uses Xcode 4 now.
How to specify the Xcode version in tell application
command or to set priority between different Xcode versions for tell application
command.
Don't advise xcode-select
: it sets priority between Xcode versions only for xcode console tools.
UPDATE
As @Red_Menace metioned we can use path to .app
file or id of the application. Please say if there is a better solution (e.g. set priority to access Xcode 3 by name "Xcode"
).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您还可以在tell语句中使用应用程序路径或ID(包标识符),例如
You can also use application paths or IDs (the bundle identifier) in the tell statement, for example