renaming pattern

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

Moderator: Mr_Noodle

renaming pattern 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
PeKob
 
Posts: 1
Joined: Sun Apr 29, 2018 12:20 pm

Re: renaming pattern 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.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support