Run a paused rule from Spotlight Search, Alfred or terminal?

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

Moderator: Mr_Noodle

Hi

How do I execute a paused rule from outside of the interface?

Best regards,
Morten
MortenBrun
 
Posts: 3
Joined: Thu Mar 25, 2021 10:15 am

Can you describe more specifically what you are trying to do? Hazel rules are not meant to be run by manual triggers nor are they meant to be run individually.
Mr_Noodle
Site Admin
 
Posts: 11250
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

I have a rule which is paused, as I only want to execute the rule when a VPN connection is up and running on a NAS server or when I find it necessary. Hope that this clarifies the situation and therefore it would be nice to execute the rule from Spotlight or Alfred.
MortenBrun
 
Posts: 3
Joined: Thu Mar 25, 2021 10:15 am

In that case, the best solution (though not easiest), would be a shellscript condition which can detect whether the VPN is up or not. Or you can try and detect a tag which you set on a file whenever you want the rule to run.
Mr_Noodle
Site Admin
 
Posts: 11250
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thanks your response.
Unfortunately that makes things a little more complicated than necessary. I only thought that there was a programable interface into Hazel.

Take care.

Best regards,
Morten
MortenBrun
 
Posts: 3
Joined: Thu Mar 25, 2021 10:15 am


Return to Support