无法使用AppleScript将发布文件夹复制到桌面

时间:2010-04-01 05:03:14

标签: applescript finder

我尝试使用此脚本将我的某个Xcode项目的release文件夹复制到桌面:

tell application "Finder"
    set targetFolder to folder "release" of folder "build" of folder "8_15pm" of folder "26th_March" of folder "XYZ" of startup disk
    set destinationFolder to folder "Desktop" of folder "miraaj" of folder "Users" of startup disk
    copy targetFolder to destinationFolder
end tell 

我原本以为我会在桌面上获得一个名为release的文件夹,但我没有得到任何文件夹:(

任何人都可以建议我在哪里做错了或者更好的方法吗?

谢谢,

Miraaj

1 个答案:

答案 0 :(得分:3)

将副本更改为重复