Page 1 of 1

How to initiate a Keyboard Maestro macro within Hazel

PostPosted: Tue Aug 23, 2016 5:54 am
by csmltd
Hi guys

Is it possible to initiate a Keyboard Maestro macro within a Hazel rule set ?

Is so I would very much appreciate some guidance on implementing such a macro.

Thx in advance,

Re: How to initiate a Keyboard Maestro macro within Hazel

PostPosted: Tue Aug 23, 2016 11:54 am
by Mr_Noodle
I'm not so familiar with Keyboard Maestro but I suspect you would need to use AppleScript to do that. You might want to consult their forums on how to do that.

Re: How to initiate a Keyboard Maestro macro within Hazel

PostPosted: Tue Feb 14, 2017 8:58 am
by melhopkop
csmltd wrote:Hi guys

Is it possible to initiate a Keyboard Maestro macro within a Hazel rule set ?

Is so I would very much appreciate some guidance on implementing such a macro.

Thx in advance,


@csmltd, I have the same exact question. Just wondering if anyone had any ideas on how to do this? It would be a very powerful and useful combination. Thanks!

Re: How to initiate a Keyboard Maestro macro within Hazel

PostPosted: Fri Feb 17, 2017 12:00 pm
by TheWart
According to the Keyboard Maestro support material https://www.keyboardmaestro.com/documentation/6/triggers.html#triggers_script, you can activate a particular macro via AppleScript as follows:

Code: Select all
tell application "Keyboard Maestro Engine"
  do script "[Name or UID of Your Macro]"
end tell