Enable/Disable Hazel Rule Using Applescript?

Posted:
Tue Jan 19, 2021 12:20 pm
by Hazel_Panther
I have two rules defined which act upon two specific files downloaded to a folder. I want to ensure that one file is acted upon before the other, so I'd like to only have the "second" rule enabled after the "first" rule has processed the "first" file. Is it possible to enable the "second" rule using an Applescript? (If not, alternative approach?).
Re: Enable/Disable Hazel Rule Using Applescript?

Posted:
Wed Jan 20, 2021 11:14 am
by Mr_Noodle
There's no way to do that and that would not be a good way of doing it anyways.
What you can do is mark the first file after it is processed, like with a tag. Then use a nested condition (look it up in the manual) to check for sibling files which have that tag before processing the second file.