Page 1 of 1

Go into Sub-Folders - sub rules will not run

PostPosted: Wed Jun 01, 2016 3:56 pm
by nmalexandersen
Hello Forum

I have a folder with content (Sub-folders and files)
The folder structure is like FolderName/Content/Clips/ClipName/...actual files...
Example of a "ClipName" Folder name is AA0150

I am trying to make a copy of this structure, but I only want to copy the ClipName folders that have more than 4 files inside of them. I then append a folder structure to the copy, based on Monitored folder.

The first rule is "Go into Sub-Folders"

If "Kind is Folder", then "Run Rules on Folder Content"

The nest rule in the list is: "Copy matched folders"

If "Kind is Folder" and "Name matches aa1111" and "Sub-file/folder Count is greater than 4", then Copy to Folder xxx with option
"Copy folder structure from Monitored folder"

In the logs I can see that Hazel runs all the Go into Sub-Folders rules, but the Copy matched Folders rules never runs ...

Copy of the log:

2016-06-01 21:58:13.613 hazelworker[4554] ###main load address: 0x1015cc000
2016-06-01 21:58:13.614 hazelworker[4554] ###Noodle load address: 0x1016e0000
2016-06-01 21:58:13.614 hazelworker[4554] ###CK load address: 0x1016a2000
2016-06-01 21:58:13.640 hazelworker[4554] Processing folder Normal Clips Card (forced)
2016-06-01 21:58:15.650 hazelworker[4554] ass2015: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.654 hazelworker[4554] CONTENTS: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.655 hazelworker[4554] CLIPS001: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.657 hazelworker[4554] AA0140: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.702 hazelworker[4554] AA0141: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.738 hazelworker[4554] AA0142: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.769 hazelworker[4554] AA0143: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.800 hazelworker[4554] AA0144: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.813 hazelworker[4554] AA0145: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.831 hazelworker[4554] AA0146: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.850 hazelworker[4554] AA0147: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.870 hazelworker[4554] AA0148: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.889 hazelworker[4554] AA0149: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.903 hazelworker[4554] AA0150: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.916 hazelworker[4554] AA0151: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.935 hazelworker[4554] AA0152: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.960 hazelworker[4554] AA0153: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.972 hazelworker[4554] AA0154: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:15.991 hazelworker[4554] AA0155: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:16.010 hazelworker[4554] AA0156: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:16.022 hazelworker[4554] AA0157: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:16.035 hazelworker[4554] AA0201: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:16.048 hazelworker[4554] AA0202: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:16.062 hazelworker[4554] AA0203: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:16.078 hazelworker[4554] JOURNAL: Rule Go into All Sub-Folders and run All Rules below matched.
2016-06-01 21:58:16.087 hazelworker[4554] Done processing folder Normal Clips Card


When I Preview the rules I get a match for the folders that I want to target, but still nothing happens ..

An ideas ?

Kind regards Nils M Alexandersen

Re: Go into Sub-Folders - sub rules will not run

PostPosted: Thu Jun 02, 2016 10:35 am
by Mr_Noodle
I'm guessing it's because you have the subfolder rule in the list before the copy folder rule. Every folder will match that first rule, therefore not giving your second rule the chance to match. Try reversing the order.