Jump to content

How to run only specific actions from a List Filter ?

Recommended Posts

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 by Bhishan
Link to comment

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