Jump to content
Bhishan

How to run only specific actions from a List Filter ?

Recommended Posts

Posted (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.

 

 

events.png

Edited by Bhishan

Share this post


Link to post
Posted (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 by Bhishan

Share this post


Link to post
Posted (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 by vitor

Share this post


Link to post

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.

Share this post


Link to post

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
×