Hazel rename file feature

I’m struggling to understand how to rename files in hazel. I’m not looking to prefix or suffix a file.

If I have a file which is called bankname month year.pdf I want to strip off the bankname and change it to newname month year.pdf

I can’t see a way to do this with the rule as it is. What am I missing?

It’s not immediately obvious, but there are ways to match files in the manner you’re describing and capture information to perform actions on. Look at the section on Custom Attributes over on the Noodlesoft support pages.

1 Like

Thanks @AlanRalph unfortunately that makes absolutely no sense to me. it seems overly complex for what I need.

I was looking for something as easy as Name Mangler makes it. Oh well. Manual it is.

Did you use “Rename” such as below:


If Hazel can’t hack it, you could always use A Better Finder Rename which offers two ways to automate:

If you have previously saved your settings into a preset, you can rename files by simply dragging them onto the closed application icon. A popup dialog will allow you to choose the preset to be applied.

Alternatively, you can store the settings into droplet mini-applications and perform a rename by dragging the files directly onto the droplet’s icon.

1 Like

It seems like Hazel ought to be able to do this (I don’t have Hazel so I don’t have a direct answer), but this thread shows how you could do it using a folder action and AppleScript.

1 Like

Should be able to do it, I have this set up:

You can change the ‘Extension’ to ‘Full name’ and ‘Starts with’