Can I unsupress replacing?

Okay, I have the script working good now. It changes the file name and moves it to the containing folder and replaces the older file. But is there a way to get the dialog back that asks if I want to replace the file? Will that require a test loop of some kind or is there an easy way to do it? If I just remove it stops the script cold.
Thanks for all the help.

i don’t have a copy of your script in front of me, but it seems what you want is to remove the “with replacing” line from it. that should throw the usual “there’s more than one file named …” confirmation dialog.
or you could test for duplicate file names and trigger your own dialog, i suppose… if that’s what you’re looking for.