题
是否有一个脚本选项来实际通过所有Xcode打开的项目(应用程序窗口)和执行菜单操作产品 - >停止或执行快捷方式“cmd +。”?
解决方案
在每个运行开头的 xcode
.
#!/bin/bash
osascript -e 'tell application "Xcode"
activate
set activeWindow to window 1
set windowName to name of activeWindow
repeat with aWindow in windows
tell application "System Events" to keystroke "`" using command down
if name of aWindow is not equal to windowName then
if name of aWindow is not equal to "" then
tell application "System Events" to keystroke "." using command down
end if
end if
end repeat
end tell'
然后在 xcode 转到首选项 - >行为 - >启动 - >运行并选择脚本。