Jump to content

How to paste File Filter path into Terminal Command


Recommended Posts

I have created a small workflow that uses a File Filter to match the name of a directory (public.folder), and then open it in Finder when pressing Enter.

 

However, I also want to open Terminal and go to that path (cd ~/my/folder).

 

Is it possible to somehow paste the query result from the File Filter, into a Terminal Command, in the workflow?

Link to comment

Okay, I actually solved this myself within a few minutes after posting the question, d'oh.

 

What you do, is add a Terminal command. And type in cd {query}.

 

To make it work with path names that have whitespace in them (space bar), mark the checkbox Escaping: Spaces.

Edited by winterflags
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...