User Tools

Site Tools


Shell_Scripting

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Shell_Scripting [2016/03/19 20:34]
JMichaelTX First Draft -- ADDed Execute Script from Other Apps -- NEEDS Work
Shell_Scripting [2016/03/19 21:19] (current)
JMichaelTX Changed to point to main Action
Line 1: Line 1:
 ====== Using Shell Scripts with Keyboard Maestro ====== ====== Using Shell Scripts with Keyboard Maestro ======
  
-Under construction… +See Keyboard Maestro ​Wiki article:  ​[[action:Execute_a_Shell_Script|Execute a Shell Script]]
- +
-===== Execute Script in Keyboard Maestro ​===== +
-FIXME -- TBD +
- +
-===== Execute Script Other Apps ===== +
- +
-When you execute a shell script from other apps, like Terminal.app,​ the shell does NOT have access to the Keyboard Maestro Engine environment,​ and thus does NOT know anything about Keyboard Maestro Variables. +
- +
-In order to access Keyboard Maestro Variables in these scripts, you must use a tool like [[https://​developer.apple.com/​library/​mac/​documentation/​Darwin/​Reference/​ManPages/​man1/​osascript.1.html|osascript]]+
- +
-<​code>​ +
-osascript -e 'tell application "​Keyboard Maestro Engine"​ to get value of variable "​MY_KM_Var"'​ +
-</​code>​+
Shell_Scripting.txt · Last modified: 2016/03/19 21:19 by JMichaelTX