Variable: Applescript to KM

Hello Forum,

I can't seem to be able to paste a variable from an Applescript to KM.

Do I have a bug or am I on a completely wrong path?

Thank you,
A. P.

Wrong path. Here’s the deal:

Thanks for the link! Very sorry, still not quite there yet.

Any suggestions?

Thank you!
A. P.

Very close. Try it this way (had to change your trigger and variable names):

Keyboard Maestro “Test” Macro

Test.kmmacros (2.3 KB)

1 Like

While KM variables can certainly be set entirely within AppleScript, I personally find it easier to return the results and save them in a variable more directly:

1 Like

This is it! Fantastic! I was close, but not completely there yet. :slight_smile:

Thank you!

Glad to help.