Page 1 of 1

renaming pattern

PostPosted: Sun Apr 29, 2018 12:38 pm
by PeKob
Hi all,

would it be possible to set up a rule in Hazel that would rename any new document in a folder to include a specific prefix-pattern, which would change [by 1] based on the number of the files in the folder - the following example might help in understanding what I want to achieve:

In a folder I have the following files:

a_file.pdf
another_file.doc
third_file.doc

and I need them to have the following names:

invoice_001-a_file.pdf
inovice_002-another_file.doc
invoice_003-third_file.doc

with any new file being copied to the folder being renamed to follow the same patter [invoice_00[x+1]] always based on the date when the file was copied to the folder.

please please....

thanks

Re: renaming pattern

PostPosted: Mon Apr 30, 2018 11:34 am
by Mr_Noodle
Using the Rename action, you can use the counter attribute (#). That will increase by one each time it is used.