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 post

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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...