Sort files into folders by date?

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

Moderator: Mr_Noodle

Sort files into folders by date? 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
zim
 
Posts: 2
Joined: Mon May 24, 2010 3:31 pm

Re: Sort files into folders by date? 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.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Sort files into folders by date? 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
zim
 
Posts: 2
Joined: Mon May 24, 2010 3:31 pm


Return to Support