Then in the Keyboard Maestro triggered macro I'm wanting it to grab the TriggerValue and pass it to the AppleScript.
The end result would be to add "bananas" to my Shopping list in Reminders.
tell application "Keyboard Maestro Engine"
set theItem to getvariable "TriggerValue"
end tell
tell application "Reminders"
tell the list "Shopping"
make new reminder with properties {name:theItem}
end tell
end tell
I'm hoping this is something simple that I'm missing 🙂
Note that TriggerValue is not a variable, it is a Token .
You should not use a variable named TriggerValue, that will just be confusing.
Ah, I was getting mixed up. Thinking %TriggerValue% was a variable
To get it via AppleScript you will need to store it in a variable.
Would I store it as a variable somehow from the web trigger URL? If not, how should I store it as a variable to be used in the macro to add to Reminders?