Bhishan Posted May 15, 2018 Share Posted May 15, 2018 (edited) Here is a simple workflow to show the number of days until some events. I was trying to apply some filter so that given command is run only for respective events. That being said, I want to quickview the given image only if I click FIFA button in the workflow shared on github. Edited May 15, 2018 by Bhishan Link to comment
vitor Posted May 15, 2018 Share Posted May 15, 2018 11 minutes ago, Bhishan said: the workflow shared on github The link points to a screenshot on Dropbox. Link to comment
Bhishan Posted May 15, 2018 Author Share Posted May 15, 2018 (edited) @vitor Apologies for that, I have updated the question. Is it possible to use {arg} to run the selected action from list action, in above workflow? Edited May 15, 2018 by Bhishan Link to comment
vitor Posted May 15, 2018 Share Posted May 15, 2018 (edited) Easiest way to do what you ask is to change the line in the Run Script to: [[ "${1}" == 'fifa' ]] && qlmanage -p worldcup.gif &> /dev/null That has the advantage that if you ever want to add the other ones, It’s pretty much copy the line and change the names. But I’d do the Workflow differently. I’d remove everything in favour of a single Script Filter with quicklookurl for the image. Edited May 16, 2018 by vitor Link to comment
deanishe Posted May 16, 2018 Share Posted May 16, 2018 Moved to Workflow Help & Questions forum. @Bhishan: If you have a question about writing a workflow, please post it in this forum, not Discussion & Help. 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