Xcode项目中重复目标的脚本

use*_*456 3 shell xcode5

我想用命令行复制Xcode项目的目标,我搜索了很多但没有找到任何解决方案.我不知道如何编写脚本来复制目标.

谁能帮我?

提前致谢

Pra*_*put 5

请看代码,它对我有用:

tell active workspace document
    set my_project to (get first project)
    tell my_project


        tell application "System Events"
            keystroke "d" using {command down}
            delay 0.5
            tell application process "Xcode"
                --delay 1.0E-3

                click button "Duplicate Only" of window 1


            end tell

        end tell

    end tell
end tell
end tell
Run Code Online (Sandbox Code Playgroud)