This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
action:Execute_a_Shell_Script [2021/10/14 04:45] peternlewis |
action:Execute_a_Shell_Script [2021/10/14 04:49] peternlewis |
||
---|---|---|---|
Line 16: | Line 16: | ||
If the script fails, the action will fail (v9.0+), potentially aborting the macro. | If the script fails, the action will fail (v9.0+), potentially aborting the macro. | ||
+ | |||
+ | Keyboard Maestro sets the environment variables for the script to include all your variables, using a prefix of `KMVAR_` and your variable name with spaces changed in to underscores (‗). For example, your Keyboard Maestro “File Name” variable will be available as the environment variable `KMVAR_File_Name`. | ||
+ | |||
+ | Keyboard Maestro also provides (v10.0+) a number of environment variables that contain information about the executing macro. These include: | ||
+ | |||
+ | ^environment variable^meaning^ | ||
+ | |KMINFO_MacroName|The name of the parent executing macro| | ||
+ | |||
==== Using Keyboard Maestro Variables ==== | ==== Using Keyboard Maestro Variables ==== |