"replacing" command clarification

Discussion in 'Mac Programming' started by nicolem, Oct 26, 2007.

  1. macrumors newbie

    Oct 26, 2007
    Hi all,

    Think I have a simple question, but I'm not sure.

    on adding folder items to this_folder after receiving added_items
    	tell application "Finder"
    		duplicate added_items to folder "  Proofs" of disk "Advertising" with replacing
    	end tell
    end adding folder items to
    "with replacing" is not replacing the file if it already exists. So if the file already exists, the script just quits. I need it to replace existing files without asking.


  2. thread starter macrumors newbie

    Oct 26, 2007
    Nevermind. It wasn't working for some reason, but I left it for a while, then tried again and it works.

Share This Page