收到错误“Xcode出错:AppleEvent处理程序失败。”当用Apple脚本复制目标时

时间:2014-07-29 06:43:09

标签: xcode5 applescript

我为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

结束告诉 有人能告诉我哪里错了吗?

提前致谢。

0 个答案:

没有答案