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 [2023/09/13 05:03] peternlewis [Output of Results] |
action:Execute_a_Shell_Script [2023/09/18 02:31] peternlewis [Output of Results] |
||
---|---|---|---|
Line 135: | Line 135: | ||
The results of a shell script can be: | The results of a shell script can be: | ||
- | * Ignored. | + | {{page>include:ScriptOutput#}} |
- | * Displayed in a floating window. | + | |
- | * Displayed briefly in a Notification. | + | |
- | * Displayed large across the screen. | + | |
- | * Typed in to the current selection. | + | |
- | * Pasted in to the current selection. | + | |
- | * Saved to a variable. | + | |
- | * Appended to a variable (v9.0+). | + | |
- | * Saved to the system or a Named Clipboard. | + | |
- | * Saved to a file. | + | |
- | * Asynchronously ignored — the action runs while the macro continues on. | + | |
If you want to return multiple values from a script, then you can use AppleScript (via `osascript`) to [[manual:Scripting#AppleScript|set Keyboard Maestro variables]]. | If you want to return multiple values from a script, then you can use AppleScript (via `osascript`) to [[manual:Scripting#AppleScript|set Keyboard Maestro variables]]. |