How to pass variable from applescript to km

WOW it worked perfectly and Much leaner! :smile:
I’ll look at this line by line to understand how it works never stop learning Loving it.
I wonder is there a resource for applescript for dummies? LMAO…

You are very kind to helping out.
Once again Chris thank you very much. :smiley: