OpenTerminal — When you are working in the Finder and you discover that you need a terminal window you have to open "Terminal" and "cd" to the folder you were working on. With OpenTerminal you just click its icon or use the Finder's contextual menu and a terminal with the correct path shows up.
The advantage of OpenTerminal over other available tools is that it can run in the background (without using processor time) and react instantly because it doesn't have to start up first. It's also more refined than the other tools I know of: it includes workarounds for several Finder and Terminal bugs and it doesn't open superfluous terminal windows.
THOMAS WIESEHöFER Unfortunately, Leopard's Terminal.app has no "make new tab" AppleScript command. However, OpenTerminal 2.0.4 supports tabs in Terminal windows if you have UI scripting turned on. (Version 2.0.4)
I have added your instructions to the OpenTerminal readme file. I've slightly modified them to work with OpenTerminal, so that "cdf" can use OpenTerminals functionality (support for Unicode file names, cd to the desktop if no windows are open, cd to the trash folder, etc.)
An especially cool thing with your command is that it works with every terminal application including xterm. (Version 2.0.3)
eval cd "`osascript -e 'tell app "Finder" to return the quoted form of the POSIX path of (target of window 1 as alias)' 2>/dev/null`"
}
With this added to your .bashrc file, you can open a terminal window and type "cdf" to change the working directory to the front-most Finder window. (Version 2.0.2)
MONOCLAST Because "." does not expand to "the current front-most Finder window". It expands to "the current working directory", which is not nearly the same thing. Try it. (Version 2.0.3)
0
Nov 2 2006
OBERBASTLER Great application, really fast, the contextual menu works perfectly (I don't use the other features), and best of all, it works with iTerm, which I much prefer over Terminal.app . (Version 2.0)
DAMIEN POLLET Wherever I put OpenTerminal (Finder window toolbar, dock) it says that I should run it from the dock then doesn't open anything... (Version 2.0)
GREENSPAN You probably still have the OpenTerminal application selected in the Finder. Deselect it or try OpenTerminal with another window and it will work. (Version 2.0)
0
Oct 30 2006
SLITHYTOVE A simple Applescript saved as an Application and copied to the Finder toolbar would do the same without this 'background mode' stuff. Like the icon though. (Version 1.5.1)
DAMIEN POLLET Slithy, "Open Terminal Here" is what you want then. The problem is that it's kinda slow to launch and run an applescript one day I'll understand why Apple keeps that crappy language around...
However, I have a problem with OpenTerminal... wherever I put it (Finder window toolbar, dock) it says that I should run it from the dock then doesn't open anything... (Version 2.0)