1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

"replacing" command clarification

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

  1. macrumors newbie

    #1
    Hi all,

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

    Code:
    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.

    Suggestions?

    Thanks!
    Nicole
     
  2. macrumors newbie

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

Share This Page