Yea I tried calling it directly, but my scripting skills are not so strong so i couldn't get it to work. I need it to work in Alfred because Alfred has many other component which this action required (login to SmartThings, retrieve a list of devices...). Thest only part I want to change from the Alfred SmartThings workflow is not using the Device Collector part, so I can send the specific command or argument (eg. st Back yard lights on) to the workflow script directly from an apple script. I'd like to do this for many devices at a time and using the GUI makes it slow as it does one at a time.
I don't think i need to touch the script, I just need to learn how to pass the argument (eg. st Back yard lights on) to the variable which the script uses to process the command. Thanks in advance for any help!