Another subfolder question

Hi,
I have another subfolder question. Apologies if it's something obvious, I've been through the examples but there's still something I'm missing.
I'm trying to make a file structure which is colour labelled based on whether a folder is empty or not.
So far I can get some of it to work, but not all - perhaps you could help me with the last bit.
Using another program, we make a file structure for a new project based on a template, and this contains a number of folders which are empty (though some contain empty subfolders) - and are labelled grey. What I want Hazel to do is clear the label if someone puts something into the folder. I can make that work easily with one folder, but when subfolders are involved I struggle.
So far I have a test folder structure that looks like this:
Deliverables/Final/Compressions/WMV/
All labelled grey, and except for the subfolders, empty.
And a set of rules like this:
Rule 1 'Look inside sub-folders'
Rule 2 'Remove colour label from folders with contents (there must be a better way to do this not using size?)
Rule 3 'If this folder contains a subfolder not labelled grey, label the parent folder grey too' (this isn't working because I've misunderstood how it works, I think?)
If I put a WMV file into the WMV folder, Hazel removes the colour label from the the WMV folder as it should, but I also need it to remove the label from the parent folders all the way up the chain.
What have I got wrong here? Looking in the preview mode, it seems like rule 3 is asking Hazel to set the colour label for the file it's found rather than it's folder as I'd hoped, so I should be doing something else.
Thanks for your time, and for a great product
J
I have another subfolder question. Apologies if it's something obvious, I've been through the examples but there's still something I'm missing.
I'm trying to make a file structure which is colour labelled based on whether a folder is empty or not.
So far I can get some of it to work, but not all - perhaps you could help me with the last bit.
Using another program, we make a file structure for a new project based on a template, and this contains a number of folders which are empty (though some contain empty subfolders) - and are labelled grey. What I want Hazel to do is clear the label if someone puts something into the folder. I can make that work easily with one folder, but when subfolders are involved I struggle.
So far I have a test folder structure that looks like this:
Deliverables/Final/Compressions/WMV/
All labelled grey, and except for the subfolders, empty.
And a set of rules like this:
Rule 1 'Look inside sub-folders'
- Code: Select all
If all of the following conditions are met for any of it's sub-files or folders
Kind is folder
Do the following to the matched file or folder
Run rules on contents
Rule 2 'Remove colour label from folders with contents (there must be a better way to do this not using size?)
- Code: Select all
If all of the following conditions are met for any of it's sub-files or folders
Color label is Gray
Size is greater than 15KB
Do the following to the matched file or folder
Set color label to clear
Rule 3 'If this folder contains a subfolder not labelled grey, label the parent folder grey too' (this isn't working because I've misunderstood how it works, I think?)
- Code: Select all
If any of the following conditions are met for any of it's sub-files or folders
Color label is not Gray
Do the following to the matched file or folder
Set color label to clear
If I put a WMV file into the WMV folder, Hazel removes the colour label from the the WMV folder as it should, but I also need it to remove the label from the parent folders all the way up the chain.
What have I got wrong here? Looking in the preview mode, it seems like rule 3 is asking Hazel to set the colour label for the file it's found rather than it's folder as I'd hoped, so I should be doing something else.
Thanks for your time, and for a great product

J