sterling Posted March 2, 2017 Share Posted March 2, 2017 I have a workflow that goes through several steps, with a couple filters in there too. Right now I invoke it with a keyword and an argument. I'd like to pass multiple arguments, running the workflow for each argument passed. I understand that the arguments are passed as a string, so it if were all one script being run I could just loop in the code. Is there a way to take those arguments and pass them along the rest of the workflow one at a time? Link to comment
deanishe Posted March 2, 2017 Share Posted March 2, 2017 Can you describe what you're trying to do more concretely? Like, what is your end goal? What steps and elements is your workflow made of? Ideally, upload the workflow somewhere where we can download it and have a look. It's hard to comment on something you only have a very vague understanding of. 1 hour ago, sterling said: Is there a way to take those arguments and pass them along the rest of the workflow one at a time? To give you a concrete answer, yes and no Workflows don't have a native "loop", but you can call Alfred's External Triggers from code (via AppleScript), so you can do the looping there. Link to comment
sterling Posted March 6, 2017 Author Share Posted March 6, 2017 Ah, I get it. I was able to loop through the arguments and call the external trigger each time. Works perfectly. Thanks for the hint! 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