Page 1 of 1

Renaming files to text string between two words

PostPosted: Mon Dec 18, 2023 10:02 am
by samcg
Hello,

I need to rename a batch of files to fit with a string between two words. The number of words between the two delimiting words can vary. Is there a way of getting Hazel to rename to all the words between 'Reference: [string] Post:'?

Thanks for your help

Re: Renaming files to text string between two words

PostPosted: Mon Dec 18, 2023 10:32 am
by Mr_Noodle
How about a pattern like 'Reference: (• my custom attribute) Post:' where •my custom attribute is a custom attribute you create to match (anything)?

Re: Renaming files to text string between two words

PostPosted: Mon Dec 18, 2023 5:38 pm
by samcg
That worked! Thank you :D