renaming file with a number

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

Moderator: Mr_Noodle

renaming file with a number Sun Oct 14, 2012 3:09 pm • by emck
I would like to use Hazel to rename my monthly receipts and if the file already exist for that month add the number 2 or 3 to the file name.
For example if I make 2 payment to my credit card that month I would like to have "jan CC.pdf" and if there is a second payment for that month I would like to have "jan cc2.pdf" and have hazel add that number but only if there is a second payment for that month. The following month this would be repeated for example "feb cc.pdf" and "feb cc2.pdf"

Can Hazel do this?
emck
 
Posts: 11
Joined: Sun Sep 25, 2011 12:05 pm

Re: renaming file with a number Tue Oct 16, 2012 11:56 am • by Mr_Noodle
First off, please do not post questions to the Tips forum (there's a sticky at the top telling you not to do this).

If a file already exists and you move/copy a file with the same name into the folder, by default, Hazel will append a number at the end. If you click on the move/copy options, you can see that you can set it to either rename or replace ("rename" meaning add a number at the end).
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: renaming file with a number Tue Oct 16, 2012 1:53 pm • by emck
Mr_Noodle wrote:First off, please do not post questions to the Tips forum (there's a sticky at the top telling you not to do this).


sorry about that I did not see that my apology to the group, should I ask follow up questions there?
emck
 
Posts: 11
Joined: Sun Sep 25, 2011 12:05 pm

Re: renaming file with a number Tue Oct 16, 2012 3:20 pm • by Mr_Noodle
Yes, I moved it here which is the right place for it so fire away.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support