I want to rename all files in a given folder with the name of that folder. I have set up a rule thus:
If all of the following conditions are met:
Any file
Name does not contain abc-123
Rename with pattern abc-123 name extension.
Despite the "name does not contain" condition Hazel prepends abc-123 to every file in that folder that already contains that name every time a new file is added, and every time I click Run Hazel Rules for that folder.
How do I write the rule to stop that happening i.e. to prepend abc-123 only once?
I should add that I have applied this rule to many folders, and most of them don't iterate in this way. It is the newer ones that do, but all I have ever done is to copy a rule to a new folder and then adapt it to the name of the new folder.