I'm able to pass a single parameter to my macro like this: osascript -e 'tell application "Keyboard Maestro Engine" to do script "test macro" with parameter "test parameter"'
And read it like this: %TriggerValue%
But how can I pass more than one parameter?
Thank You!
Set multiple parameters separated by commas:
tell application "Keyboard Maestro Engine" to do script "test macro" with parameter "test parameter, test2, test3"
Then access the individual values of the TriggerValue array like this: %TriggerValue[2]% (for the second comma-separated value)
%TriggerValue[2]%
For more information, see the wiki Searching the Forum for Answers section.