我正在用vim或atom开发iOS。但有件事我不喜欢。必须按“命令+”选项卡,然后在要运行时切换到Xcode。
我发现这个剧本解决了这个问题。但效果不太好。
tell application "Xcode"
activate
tell application "System Events"
perform (keystroke "r" using command down)
end tell
end tell或者另一个applescript。它也不管用。
tell application "Xcode"
activate
set targetProject to project of active workspace document
if (build targetProject) is equal to "Build succeeded" then
launch targetProject
end if
end tell请帮帮忙。
发布于 2016-01-14 08:51:07
第一个脚本几乎是正确的,只是perform语法错误。
activate application "Xcode"
tell application "System Events"
tell process "Xcode"
keystroke "r" using command down
end tell
end tellhttps://stackoverflow.com/questions/34780650
复制相似问题