Thanks so much Peter for you great suggestions!
This is my first attempt at the macro.
My current problem is the try / catch is not working as expected.
I expected the if the file already exists (error) then it would execute the catch which would add the random and timetag unique text and save ok. but it does not - I get the error:
File action failed because destination already exists…
Any Idea how to get this working so the file will save simply and add the unique text only if needed?
Rename-txt-files-using-first-line-of-each-file-mod1-mpu-v001.kmmacros (7.8 KB)