LRZ Posted August 4, 2022 Share Posted August 4, 2022 Hi, Have a workflow I would like to launch from within a shell script. Tried URL handler, but get an error: open alfred://runtrigger/com.alfredapp.vero.gettingstarted.snippettrigger/sniptest/?argument=test error: zsh: no matches found: alfred://runtrigger/com.alfredapp.vero.gettingstarted.snippettrigger/sniptest/?argument=test applescript seems to work ok though: tell application id "com.runningwithcrayons.Alfred" to run trigger "sniptest" in workflow "com.alfredapp.vero.gettingstarted.snippettrigger" with argument "test" Any suggestions? Thanks L. Link to comment
vitor Posted August 4, 2022 Share Posted August 4, 2022 You have a ? in the URL, which has special meaning in the shell. As such, you have to quote the text: open 'alfred://runtrigger/com.alfredapp.vero.gettingstarted.snippettrigger/sniptest/?argument=test' You can also use the AppleScript from a shell script: osascript -e 'tell application id "com.runningwithcrayons.Alfred" to run trigger "sniptest" in workflow "com.alfredapp.vero.gettingstarted.snippettrigger" with argument "test"' LRZ 1 Link to comment
justanotheruser Posted March 11, 2023 Share Posted March 11, 2023 I am trying to run some Alfred commands from an apple script. Is there a library with the available Apple script commands? Link to comment
vitor Posted March 11, 2023 Share Posted March 11, 2023 Welcome @justanotheruser, Apps supporting AppleScript have a dictionary. Open the Script Editor app on your Mac, make a new document then File → Open Dictionary… Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now