unable to copy release folder to desktop using AppleScript

Posted by Miraaj on Stack Overflow See other posts from Stack Overflow or by Miraaj
Published on 2010-04-01T05:03:14Z Indexed on 2010/04/01 5:13 UTC
Read the original article Hit count: 317

Filed under:
|

Hi all,

I tried this script to copy release folder of one of my Xcode projects to desktop:

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 

I was expecting that I will obtain a folder named as release on my desktop but I did not get any :(

Can anyone suggest me where I am wrong or some better way to do this??

Thanks,

Miraaj

© Stack Overflow or respective owner

Related posts about applescript

Related posts about finder