Run rules on a created subfolder

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

Moderator: Mr_Noodle

Run rules on a created subfolder Fri Dec 23, 2016 9:23 pm • by leftnotracks
I am sorting a lot of files into complex hierarchy of subfolders. More specifically:

I am using automation and scripts to export a lot of logos from Illustrator into different formats. For each master logo I will create 84 files. There are 119 master logos, making for just under 10,000 files.

I have a Hazel rule (actually a few rules) to sort the 84 files into the correct hierarchy of folders. Let's call this Rule 1.

I have a hazel rule that can sort any number of files into subfolders for each master logo. For example, If I feed it all 9,996 files (assuming they are properly named) this rule will sort everything into 119 folders of 84 files. Let's call this Rule 2.

What I would like is a way to run Rule 1 on the subfolders created by Rule 2. Is that possible?
leftnotracks
 
Posts: 23
Joined: Sat Oct 29, 2016 3:58 am

Re: Run rules on a created subfolder Mon Dec 26, 2016 10:16 am • by Dave61
Something like

Rule 0: apply rules to subfolder contents
Rule 1: whatever
Rule 2: whatever

should recurse through your hierarchy.

If Rule 2 should only apply to newly created folders then you need some way of distinguishing them (e.g. a colour tag) and the sequence becomes

Rule 0: apply rules to subfolder contents
Rule 1: if folder is not blue, do whatever, and make folder "blue"
Rule 2: if folder is blue, do whatever else
Dave61
 
Posts: 114
Joined: Tue Jul 10, 2012 4:56 pm

Re: Run rules on a created subfolder Mon Dec 26, 2016 12:35 pm • by Mr_Noodle
To elaborate on this, check out this article on how to get Hazel to go into subfolders: https://www.noodlesoft.com/kb/going-into-subfolders/
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support