vivek Posted January 14, 2013 Share Posted January 14, 2013 Is it possible to provided multiple parameters to a workflow? I tries {query0} {query1} / {query1} {query2} neither of the above worked. And if we give {query} {query} they both are the same values, so should I be passing it to a shell script and then work out the logic there and then invoke my operations accordingly? Link to comment
simonbs Posted January 14, 2013 Share Posted January 14, 2013 You should either pass the query as commandline arguments to your script or parse the query yourself (e.g. split by words). Link to comment
jdfwarrior Posted January 14, 2013 Share Posted January 14, 2013 simonbs is right. It's all sent via the single {query} parameter. One you have it in your script would have to parse it yourself via some parameter whether it be a space or something else Link to comment
vivek Posted January 14, 2013 Author Share Posted January 14, 2013 hmm, looks like that is the best way now. Cheers! Link to comment
CarlosNZ Posted January 15, 2013 Share Posted January 15, 2013 If you're doing a shell script, I found this tutorial pretty useful: http://www.dirtdon.com/?p=1384 Link to comment
sbb Posted March 26, 2013 Share Posted March 26, 2013 Take a look at this http://www.alfredforum.com/topic/968-how-to-deal-with-arguments-in-bash-workflow/ - This helped me a lot! 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