Page 1 of 1

subfolder sorting on file contents

PostPosted: Thu Oct 15, 2015 1:12 pm
by SSL
Hi,
I am new to Hazel and just trying to wrap my head around dropping files into nested subfolders. I have been able to pull out the date on an invoice and used that to rename the file. Now I want to drop that into the correct subfolder.
My current folder tree is something like the following
Company XYZ (folder)
2014 (sub-folder)
Correspondence (sub-sub-folder)
Expenses (sub-sub-folder)
2015 (sub-folder)
Correspondence (sub-sub-folder)
Expenses (sub-sub-folder)

My date token knows the invoice is from 2015 but how do I direct it to drop it into the Expenses folder for 2015?
Thanks in advance!
Sean

Re: subfolder sorting on file contents

PostPosted: Fri Oct 16, 2015 1:32 pm
by Mr_Noodle
Use the Sort into subfolder action. There you can specify a pattern. Drop in the appropriate date attribute, click on it and then edit its format to only use the year.

BTW, when trying to indent stuff, use the code tag otherwise the formatting gets lost.

Re: subfolder sorting on file contents

PostPosted: Fri Oct 16, 2015 5:12 pm
by SSL
Great, thanks for the tips!