Jump to content

Use selection, if not available use clipboard

Recommended Posts

Thanks Vitor,


I seem to have misused the term 'fallback'. I don't actually want fallback search results. What I want is:


If text is selected → Use that

If there is no text selected -> Use clipboard (if there is any text)


Sorry for the confusion!

Link to comment

Add a Conditional Utility. Leave it with the default of if {query} is equal to which translates to “if input is equal to <empty>”. Then connect the top output to an Argument and Variables Utility with {clipboard} as the argument. Like so.




Keep in mind that when nothing is selected, it’ll still work but you’ll hear a sound. That’s unavoidable, as it’s coming from macOS erroring when you can’t copy the selection.

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