I don't see a KM action to set multiple variables, so I use AppleScript to set them at once.
It appears I can't create instance variables with AppleScript for use in subsequent actions?
As an example, I created six instance variables with AppleScript, but they are passed on to the next action. Can anyone confirm if this is indeed the case? Or is there another way to do it?
PS: I know I can either set them one by one or use input as instance variables. But either is what I want. If I have more than 10 variables, AppleScript looks much nicer to me.
In this case the WiKi is your friend here.
set kmInst to system attribute "KMINSTANCE"
tell application "Keyboard Maestro Engine"
setvariable "Local__FromAS" instance kmInst to "Variable set in AppleScript."
I searched for a long time but did not came across to this page.
Thank you so much!
You're welcome! And thanks for revealing to me a better way to initialise a bunch of variables in one (concise) go!