Sort into Subfolders within Subfolders

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

Moderator: Mr_Noodle

Sort into Subfolders within Subfolders Thu Jun 21, 2012 11:56 pm • by macwinpro
I feel there maybe something simple I'm missing here, but I've spent a few hours playing around with a test folder and searching the forms. I have a folder structure set up so that the parent folder <clients> is populated by subfolders <client Name>, and inside <client Name> folders are client files. I want those files sorted into subfolders by the year they were created.

I have no problem setting up the date created and applying the rules to the subfolders. But no matter what I seem to do, Hazel will create the year in the parent folder <clients> and not create the year in the subfolder <client Name>. The rule result then becomes <Clients><Year><Client Name>. What I want instead is <Clients><Client Name><Year>.

Of course I could always create a rule for each client folder to do this, but I have many clients and the folder list would get quite large. Any suggestions?
macwinpro
 
Posts: 2
Joined: Thu Jun 21, 2012 11:40 pm

Re: Sort into Subfolders within Subfolders Fri Jun 22, 2012 5:49 pm • by Mr_Noodle
Did you check the sticky article at the top of this forum concerning subfolders?
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Sort into Subfolders within Subfolders Tue Jun 26, 2012 7:08 pm • by macwinpro
I had read them but your post prompted to try again. I was able to solve my problem so I thought I would post my solution below.

I created two rules.
Rule 1 - "Go into Folder" set up as:
If all of the following conditions are met for "the file or folder being matched"
Kind is "Folder"
Subfolder depth is "0" (important without this step I created an infinite number of subfolders)
Do the following to the matched file or folder
Run rules on folder contents

Rule 2 - "Sort by Year"
If all of the following conditions are met for "the file or folder being matched"
(whatever rules you need) (I set mine up to match by extension)
Do the following to the matched file or folder
Sort in Subfolder with pattern {date created}. (for those those who don't know after you choose {date created} you will see a small drop down arrow that allows you to select the date pattern.)

I hope someone finds this useful.

Cheers.....
macwinpro
 
Posts: 2
Joined: Thu Jun 21, 2012 11:40 pm

Re: Sort into Subfolders within Subfolders Tue Jan 19, 2016 7:04 am • by nebaon
As I just fiddled around with that too: There is an easier solution. When you use the "Sort into Subfolders" button your will find a little "play button" in the list of folder name elements. That is the marker for a subfolder within the folder you are creating.
So for me the easiest way would be to define one folder structure that is defined as
client > client name > year
(while > will be the "play button"-shaped element)

So one rule will be sufficient to definine a subfolder hierarchy.
Hope that´ll help.

David
nebaon
 
Posts: 6
Joined: Tue Jan 19, 2016 6:55 am


Return to Support