Page 1 of 1

Run rules on a created subfolder

PostPosted: 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?

Re: Run rules on a created subfolder

PostPosted: 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

Re: Run rules on a created subfolder

PostPosted: 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/