Enable/Disable Hazel Rule Using Applescript?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

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?).
Hazel_Panther
 
Posts: 1
Joined: Wed Feb 08, 2017 8:44 pm

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.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support