Board index
Members
FAQ
Register
Login
Board index
‹
Hazel
‹
Support
Print view
Automate a Hazel Rule with a script, shortcut or ...
Get help. Get answers. Let others lend you a hand.
Moderator:
Mr_Noodle
Post a reply
5 posts • Page
1
of
1
Automate a Hazel Rule with a script, shortcut or ...
Fri May 03, 2024 9:49 pm
• by
MortenBrun
Hi
Has anybody been able to turn on or off a rule from outside of Hazel?
Either by a script, Mac shortcut, Key macro or....
Thanks beforehand.
MortenBrun
Posts:
5
Joined:
Thu Mar 25, 2021 10:15 am
Reply with quote
Re: Automate a Hazel Rule with a script, shortcut or ...
Mon May 06, 2024 11:13 am
• by
Mr_Noodle
Hazel has AppleScript support for that.
Mr_Noodle
Site Admin
Posts:
11865
Joined:
Sun Sep 03, 2006 1:30 am
Location:
New York City
Reply with quote
Re: Automate a Hazel Rule with a script, shortcut or ...
Mon May 06, 2024 6:01 pm
• by
MortenBrun
Mr_Noodle wrote:
Hazel has AppleScript support for that.
Thanks your response, but where can I find some examples and/or documentation?
/morten
MortenBrun
Posts:
5
Joined:
Thu Mar 25, 2021 10:15 am
Reply with quote
Re: Automate a Hazel Rule with a script, shortcut or ...
Tue May 07, 2024 11:17 am
• by
Mr_Noodle
You can search around for general AppleScript tutorials. The manual has some specifics about how to use the AppleScript with Hazel.
Mr_Noodle
Site Admin
Posts:
11865
Joined:
Sun Sep 03, 2006 1:30 am
Location:
New York City
Reply with quote
Re: Automate a Hazel Rule with a script, shortcut or ...
Tue May 07, 2024 12:32 pm
• by
smm
Another option is to save an empty file (such as with “echo > flag” whenever you want the rule to be active (or inactive), and then check for the presence (or absence) of the file “flag” as one of the rule’s triggering conditions.
smm
Posts:
9
Joined:
Sun Oct 25, 2015 10:28 am
Reply with quote
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Post a reply
5 posts • Page
1
of
1
Return to Support
Jump to:
Select a forum
------------------
General
Forum/Site Discussion
Hazel
Support
Open Discussion
Tips & Tricks - DO NOT POST QUESTIONS
Beta Discussion