Sort files into folders by date?

Posted:
Mon May 24, 2010 3:34 pm
by zim
I have a folder where my camera deposits new photos either via wi-fi or USB when I sync it.
I'd like to sort these photos into nested folders in this format;
YearFolder/MonthFolder/DayFolder/orginalitemname.jpg
Can this be done with Hazel and if so could someone help me with the necessary rules?
Thanks,
Mark
Re: Sort files into folders by date?

Posted:
Tue May 25, 2010 7:54 pm
by Mr_Noodle
You would use the Sort into subfolder action. There you can specify a pattern. I'm not sure which date you want to use but the following should apply to whatever one you end up using.
If you drag in the date attribute you want, you can click on it and see an option to edit it's format. So, the key here is that you are going to drag in a date attribute, edit its format, drag in a path separator (to indicate another subfolder), then drag in the same date attribute again, etc.
When editing the format, for the first one, remove everything but the year. For the second one, remove everything but the month, and so on.
Give that a shot and post back here if you are still having trouble with it.
Re: Sort files into folders by date?

Posted:
Tue May 25, 2010 9:03 pm
by zim
Thanks, I hadn't noticed that the Date Created labels were editable. Had a minor problem with recursion where the rule created a folder called 2009 with a month subfolder and a date subfolder and then moved the whole nested stack 2009/month/day into another stack for today resulting in 2010/05/25/2009/01/01 but was able to fix this by excluding Kind=Folder.
Cheers,
Mark