User Tools

Site Tools


manual:Command_Line_Tool

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
manual:Command_Line_Tool [2023/09/12 22:34]
peternlewis created
manual:Command_Line_Tool [2023/10/24 01:28] (current)
peternlewis
Line 1: Line 1:
 ====== Command Line Tool ====== ====== Command Line Tool ======
  
-Keyboard Maestro includes a command line tool to let you execute macros from the shell command line. The tool is named `keyboardmeastro` and is located within the `Keyboard Maestro.app` application. Assuming the application is installed in the Applications folder, the command line tool will reside at:+Keyboard Maestro includes a command line tool to let you execute macros from the shell command line. The tool is named `keyboardmaestro` and is located within the `Keyboard Maestro.app` application. Assuming the application is installed in the Applications folder, the command line tool will reside at:
  
-``` +<​code>​ 
-/​Applications/​Keyboard Maestro.app/​Contents/​MacOS/​keyboardmeastro +/​Applications/​Keyboard Maestro.app/​Contents/​MacOS/​keyboardmaestro 
-```+</​code>​
  
 You may want to create a shell alias for it, or add `/​Applications/​Keyboard Maestro.app/​Contents/​MacOS` to your PATH, or you can link to it from `/​usr/​local/​bin` with the command: You may want to create a shell alias for it, or add `/​Applications/​Keyboard Maestro.app/​Contents/​MacOS` to your PATH, or you can link to it from `/​usr/​local/​bin` with the command:
  
-```bash +<​code ​bash> 
-sudo ln -s '/​Applications/​Keyboard Maestro.app/​Contents/​MacOS/​keyboardmeastro' /​usr/​local/​bin/​keyboardmeastro +sudo ln -s '/​Applications/​Keyboard Maestro.app/​Contents/​MacOS/​keyboardmaestro' /​usr/​local/​bin/​keyboardmaestro 
-``` +</​code>​
  
-Use `--help` to list out the argument options.+Use `--help` to list the argument options.
  
-The command can pass a value to the macro (available via the [[token:​TriggerValue|%TriggerValue%]] token), and execute the macro asynchronously,​ or wait for the macro to finish, receiving a result (returned via the [[action:​Return_Result|Return Result]] action) which is output ​the stdout.+The command can pass a value to the macro (available via the [[token:​TriggerValue|%TriggerValue%]] token), and execute the macro asynchronously,​ or wait for the macro to finish, receiving a result (returned via the [[action:​Return_Result|Return Result]] action) which is output ​to stdout.
  
 Alternatively,​ the command can ask to edit the specified macro in the Keyboard Maestro editor. Alternatively,​ the command can ask to edit the specified macro in the Keyboard Maestro editor.
  
manual/Command_Line_Tool.1694572469.txt.gz · Last modified: 2023/09/12 22:34 by peternlewis