Recursive Renaming Rule

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Recursive Renaming Rule Sat Apr 26, 2014 4:52 am • by rarum
Hi,

I want to rename a folder and its contents recursively.

My rules look like this:

Image

Image

Image

This way only the folder get renamed. If I swap the rules only the contents get renamed!

Any ideas?

Thanks
rarum
 
Posts: 5
Joined: Sat Apr 26, 2014 4:37 am

Re: Recursive Renaming Rule Mon Apr 28, 2014 3:15 pm • by Mr_Noodle
Only one rule can match so you need to add a condition to the "Kind is folder" rule to also do the rename. If a folder is matched by "any file" (that matches everything), then it won't get to the other rule, and vice versa.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Recursive Renaming Rule Sat May 10, 2014 4:26 am • by rarum
Thanks, I tried that; Hazel won't do it, if the folder gets renamed before (or after) the "run rules on folder contents" action.

Running the same rules again on an already renamed folder works though!
rarum
 
Posts: 5
Joined: Sat Apr 26, 2014 4:37 am

Re: Recursive Renaming Rule Sat May 10, 2014 4:39 am • by rarum
Oh sorry, I made an unrelated mistake! Everything works as you described! Thanks!

I will test more thoroughly next time before posting ;)
rarum
 
Posts: 5
Joined: Sat Apr 26, 2014 4:37 am


Return to Support