How do I use part of the existing filename in a rename?

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

Moderator: Mr_Noodle

I want to rename downloaded files that are named with the pattern "Document_XXX.pdf" (where XXX is a 12-digit reference) to "BankName_XXX.pdf". That is, I want to replace "Document" with "BankName" in the filename.

I can't see how to do this using the Hazel pattern feature – is this possible?
mrkwr
 
Posts: 2
Joined: Wed Nov 15, 2017 6:18 am

Create a custom attribute for the part of the filename you want to keep. Then in the Rename action, you can use that custom attribute in the pattern.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thanks
mrkwr
 
Posts: 2
Joined: Wed Nov 15, 2017 6:18 am


Return to Support