以下是我想要的步骤:
- 启动 xcode
- 打开特定的 xcodeproj 文件
- 构建和调试它
- 退出 xcode
以下是我第一次尝试编写 AppleScript:
tell application "Xcode"
tell project "iphone_manual_client"
debug
end tell
close project "iphone_manual_client"
end tell
这仅在 xcode 打开此项目时有效。我希望仅在必要时才打开该项目。
那里的任何 AppleScript 大师都可以为我指明正确的方向吗?谢谢。
-川-