Page 1 of 1

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

PostPosted: Wed Nov 15, 2017 6:25 am
by mrkwr
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?

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

PostPosted: Wed Nov 15, 2017 11:33 am
by Mr_Noodle
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.

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

PostPosted: Thu Nov 16, 2017 6:19 am
by mrkwr
Thanks