Hi,
thanks to the people who answered my first question on renaming a file.
Unfortunately I still have a problem. Is it possible to duplicate an item and renaming it at the same time?
I would like to copy a file from one folder to another, but since the destination folder may have a file with the same name, I would like to have the copy have a different name. I can't rename before duplicating, because
then the original file would have been renamed too. And I can't obviously rename after duplicating, because either the file in the destination folder will have been replaced (using "with replacing"), or the script will stop with an error (using "without replacing" or if replacing has not been specified).
So far I make a copy of the file in the same folder (somehow this gets around the problem of having a file with the same name and not specifying replacing), rename this copy, and then move it. It is cumbersome though. Any other way?
By the way, this is in OS X.1
Thanks again,
AJM