BrianKracoff Posted March 17, 2013 Posted March 17, 2013 Here's a simple workflow for cd'ing to a directory. It opens a new terminal window, cd's to the directory and then clears the screen. Maybe you guys will find it helpful! https://github.com/briankracoff/alfred-cd-to-directory
jhuiting Posted March 17, 2013 Posted March 17, 2013 (edited) I think this is in Alfred2 by default, something like "> cd /this/is/a/folder" Edited March 17, 2013 by jhuiting
qohelet Posted March 17, 2013 Posted March 17, 2013 You could add something like: try tell application "Finder" set input to the target of the front window as alias end tell on error set input to (path to home folder) end try tell application "Terminal" do script "cd " & quoted form of POSIX path of input & ";clear" activate end tell in order to open the current folder in terminal.
franzheidl Posted March 17, 2013 Posted March 17, 2013 There's a workflow for that: http://www.alfredforum.com/topic/612-run-terminal-command-in-current-finder-directory/ It doesn't only let you CD in the current Finder directory, you can also pass the Terminal command you wish to run directly via Alfred. Just sayin'
BrianKracoff Posted March 17, 2013 Author Posted March 17, 2013 Thanks for the input guys. I didn't make this to open the current finder directory in terminal. I made it to open a completely separate directory in terminal, by searching the file system. @jhuiting: I like how you can do other commands that way, but for cd'ing I wanted to be able to search the file system to not have to memorize the path. Using ">" requires that you know the exact path the the folder. If I memorized the path to a folder, what do I need alfred for? @franzheidl: yeah I saw that, but I didn't like how you had to have the finder window open to cd to it. I really don't use finder ever.
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