Page 1 of 1

Check for and create folder

PostPosted: Thu Jun 09, 2016 2:41 am
by reagan9000
Hi - I manually download my bank statements, and have Hazel rename the file to have the statement date in the filename, then move the renamed file into bank statement folder.

I'd like to improve the rule so that it creates a subfolder named after the year if it doesn't exist, and then move the statement there instead. So:

downloads/statement.pdf --> Hazel rule --> bank_statements/2016/20160101-statement.pdf

Is this possible and if so, could you show me how?

Thanks

Re: Check for and create folder

PostPosted: Thu Jun 09, 2016 6:25 am
by Dave61
reagan9000 wrote:Hi - I manually download my bank statements, and have Hazel rename the file to have the statement date in the filename, then move the renamed file into bank statement folder.

I'd like to improve the rule so that it creates a subfolder named after the year if it doesn't exist, and then move the statement there instead. So:

downloads/statement.pdf --> Hazel rule --> bank_statements/2016/20160101-statement.pdf

Is this possible and if so, could you show me how?

Thanks

Can you use the date created to get the year accurately? If so, I do something similar with photos, using the "Sort into subfolders" action and the date created to sort them into daily folders. There are lots of options to tweak the pattern to suit your needs.
Image