我为Xcode项目的重复目标编写了一个脚本并得到错误“Xcode出错:AppleEvent处理程序失败。
我的脚本是:
tell application "Xcode"
activate
delay 3
tell active workspace document
set my_project to (get first project)
tell my_project
set make_target to (get first target of my_project)
set target_name to "ScriptDemoCopy"
tell application "System Events"
keystroke "d" using {command down}
--set my_new_target to make target with data make_target with properties {name:target_name}
end tell
end tell
end tell
结束告诉 有人能告诉我哪里错了吗?
提前致谢。