Jump to content

Looping through multiple arguments?


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...