Rename file keeping file name structure.

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

Moderator: Mr_Noodle

Rename file keeping file name structure. Mon Jul 08, 2024 9:48 am • by nexsim
Hello,

I need to rename a file with the following structure:

CHK-DEB-2024-07-05-XXXXXX-25.37.pdf

The only thing I need to change is to replace the XXXXXX string (Vendor name) while keeping the rest as it is.
I can't figure it out how to do it.

Sorry if it is a dumb question, just new to hazel.
nexsim
 
Posts: 7
Joined: Mon Jul 08, 2024 9:43 am

Look up match patterns in the manual. You can set up custom attributes to match the parts before and after the XXXXX string and use those in the Rename pattern along with the replacement text.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Rename file keeping file name structure. Tue Jul 09, 2024 10:05 am • by nexsim
Thanks Mr_Noodle.
I had trouble making it work, but I could figure out how to fix it.
Every time I set up the rules, I couldn't save the changes.
So, the rules never took effect. I have to restart the Mac to start the rule from scratch, and the save option is not greyed out again.
This issue has occurred a couple of times now, any idea why saving option is not available while making rule changes?
nexsim
 
Posts: 7
Joined: Mon Jul 08, 2024 9:43 am

What version of Hazel are you running?
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Rename file keeping file name structure. Wed Jul 10, 2024 12:21 pm • by nexsim
Hazel 5.3.4
Sonoma 14.5
nexsim
 
Posts: 7
Joined: Mon Jul 08, 2024 9:43 am

Can you record a video of this?
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Rename file keeping file name structure. Fri Jul 12, 2024 10:48 am • by nexsim
This weekend, I will spend more time with it, and if I encounter the same issue, I will record it.
nexsim
 
Posts: 7
Joined: Mon Jul 08, 2024 9:43 am


Return to Support