Control the Finder with the Terminal

Dec 13, '12 07:30:00AM

Contributed by: NapoleonWils0n

There are several ways to open a Terminal window to the current directory in the Finder. But wouldn't it be useful if you could do the reverse and open a Finder window to the current Terminal directory? Well, you can, and you can completely control the Finder from the terminal.

I have put the code on github with full instructions on how to set it up. It works by using bash_completion, .bash_profile with some applescript to control the Finder, .inputrc and .bash_aliases.

Here are some of the features:

This code will work with both the Terminal.app and iTerm2 and should work with older macs as well

[kirkmc adds: I haven't tested this, but it sounds very useful.]

Comments (11)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20121031111929732