Get Trigger Value from AppleScript?

I can set the Trigger Value of a macro as a KM variable before running an AppleScript, and then get the KM variable from the AppleScript, but is it possible to get the Trigger Value directly from an AppleScript?

Just wondering if the extra step of setting the KM variable first is needed.

As far as I know, you need to set a variable to the trigger value.

Hey Even,

That's easy enough to to test:

Test ⇢ Is the Trigger Value Available to AppleScript?.kmmacros (4.6 KB)

The result would appear to be a resounding "NO!", since nothing shows up in the result window.

-Chris

1 Like

Thanks Chris. That helped me learn more about tokens in AppleScript in general.