How to initiate a Keyboard Maestro macro within Hazel

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

Moderator: Mr_Noodle

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
 
Posts: 1
Joined: Thu Jul 21, 2016 2:15 am

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

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!
melhopkop
 
Posts: 1
Joined: Thu Jul 21, 2016 1:30 pm

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
TheWart
 
Posts: 4
Joined: Sat Mar 12, 2016 11:14 am


Return to Support