trigger:Script
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| trigger:Script [2015/02/04 04:39] – created peternlewis | trigger:Script [2023/09/21 08:07] (current) – [See Also] peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Any active macro can be executed | + | Any active macro can be triggered |
| -- ignoring application responses | -- ignoring application responses | ||
| Line 7: | Line 7: | ||
| end tell | end tell | ||
| -- end ignoring | -- end ignoring | ||
| + | |||
| + | or | ||
| + | |||
| + | osascript -e 'tell app " | ||
| As can be seen, you can execute the macro by name, or more specifically based on the UID of the macro. | As can be seen, you can execute the macro by name, or more specifically based on the UID of the macro. | ||
| Note that a macro must be active (that is, it must be enabled, and the macro group that contains it must be enabled and active) in order for the macro to be triggered by any means including via script. | Note that a macro must be active (that is, it must be enabled, and the macro group that contains it must be enabled and active) in order for the macro to be triggered by any means including via script. | ||
| + | |||
| + | You can pass a parameter to the macro by adding *with parameter " | ||
| + | |||
| + | ===== See Also ===== | ||
| + | |||
| + | === Triggers === | ||
| + | |||
| + | * [[URL|URL]] trigger | ||
| + | * [[keyboardmaestro|keyboardmaestro CLI Tool]] | ||
| + | * [[Trigger File|Trigger File]] | ||
| + | * [[/ | ||
| + | |||
trigger/Script.1423024788.txt.gz · Last modified: by peternlewis
