Page 1 of 1

Don't process additional rules if

PostPosted: Wed Mar 11, 2015 3:23 pm
by unstablefears
Hello!

I've checked around, but couldn't seem to find anything on this matter. However, is it possible to halt additional rules from processing depending on the results of a previous rule?

For example, if I have 3 rules created for a single folder, I'd like rule #1 to check for something and if it fails, it won't continue to process rule #2 or #3. Basically sending a halt/kill signal so that no further processing will happen. Is this possible?

Thanks!

Re: Don't process additional rules if

PostPosted: Thu Mar 12, 2015 1:55 pm
by Mr_Noodle
How about having rule #1 check for the reverse of what you want and then using "Ignore file"? That will prevent any future processing.

Re: Don't process additional rules if

PostPosted: Thu Mar 12, 2015 2:43 pm
by unstablefears
Hmm, maybe I need to look at this from a different angle. What I'm trying to do is have Hazel ignore a subfolder if the folder contains a certain file extension.

For example, a subfolder might have the following files:

file.part
file.part2
file.rar

I have it set up to unrar based on the fact the subfolder hasn't been modified in the last few minutes which is working about 95% of the time, just trying to figure out a more concrete way to stop the unrar rule from executing if there's a .part present anywhere in the folder.

Hopefully that makes sense and isn't confusing!

Re: Don't process additional rules if

PostPosted: Fri Mar 13, 2015 11:14 am
by Mr_Noodle
To do that, hold down option while clicking the + button to create a new condition. That will create a nested condition. There, you will see a popup to specify the target of that condition. There, you can specify conditions to match against the folder's contents. The rule itself still applies to the folder though.