winterflags Posted June 14, 2016 Share Posted June 14, 2016 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
winterflags Posted June 14, 2016 Author Share Posted June 14, 2016 (edited) 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 June 14, 2016 by winterflags Link to comment
deanishe Posted June 14, 2016 Share Posted June 14, 2016 To be absolutely correct, use "{query}" (i.e. in double quotation marks) and select Escaping options Backquotes, Double Quotes, Backslashes, Dollars. Anything else, and some input could break it. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now