I've successfully used a script to rename the 10 files in a folder by adding '1 - ' to the beginning of each file name. However, I have encountered two issues:
When I run the script again, it mistakenly adds another 'X - ' at the start, resulting in names like '1 - 2 - XXXX'
I want to modify the script so that if a file already has a prefix like '1 - ', it won't be renamed again.
Additionally, when new files are added to the folder, I want them to continue the numbering from the last file. For example:
Folder currently contains:
1 - XXXX 2 - XXXX 3 - XXX
If I add a fourth file and run the script, the output should be:
1 - XXXX 2 - XXXX 3 - XXX 4 - XXX
Existing files remain unchanged while the new file starts at 4.
Any assistance would be greatly appreciated!
UPDATE: I have also included the link to my current script as requested: enter image description here