chu*_*uan 13 xcode applescript
以下是我想要的步骤:
以下是我第一次尝试编写AppleScript:
tell application "Xcode"
tell project "iphone_manual_client"
debug
end tell
close project "iphone_manual_client"
end tell
Run Code Online (Sandbox Code Playgroud)
这仅在xcode打开此项目时有效.我希望只在必要时才打开项目.
任何AppleScript专家都可以指出我正确的方向吗?谢谢.
-chuan-
chu*_*uan 13
我想我设法解决了.以下是AppleScript:
tell application "Xcode"
open "Users:chuan:Desktop:iphone_manual_client:iphone_manual_client.xcodeproj"
tell project "iphone_manual_client"
clean
build
(* for some reasons, debug will hang even the debug process has completed.
The try block is created to suppress the AppleEvent timeout error
*)
try
debug
end try
end tell
quit
end tell
Run Code Online (Sandbox Code Playgroud)
路径必须采用":"而不是"/"的格式.现在唯一的问题是,在调试控制台完成其工作后,AppleScript似乎"挂起",好像在等待某些事情发生.我需要对AppleScript进行更多研究才能知道脚本有什么问题.
| 归档时间: |
|
| 查看次数: |
10202 次 |
| 最近记录: |