I working on a script that copies a file to a new folder and then takes that file and movers it to a “History” folder. It works great until it encounters a file with the same name, I was trying to get it to overwrite it, but I would love it to prompt me if I would like to overwrite that file on the copy file and just replace on the move file. Thanks
on open files_rename
set copy_folder to choose folder name with prompt "Select Folder to Copy Files to"
set move_folder to "Retouching:6.img_history:"
tell application "Finder"
repeat with aFile in files_rename
duplicate aFile to copy_folder with replacing
move aFile to move_folder with replacing
end repeat
end tell
end open