OpenTerminal
Your rating: Now say why...

(5) 4.5

Opens the Terminal with cd command.   Free
Add to my Watch List
Email me when discounted
OpenTerminal opens the Terminal with cd command.

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
What's New
Version 2.07:
  • Works better with Mac OS X's Spaces feature
  • Includes some new workarounds for iTerm bugs
  • The alternative icon for the Finder's toolbar has been updated so it's no longer misaligned.
  • Works better with Visor (added in 2.06b)
Requirements
  • Intel
  • Mac OS X 10.6 or later
  • iTerm support has been tested with version 0.10


*Previously available here






OpenTerminal User Discussion (Write a Review)
ver. 2.x:
(5)
Your rating: Now say why...
Overall:
(5)

sort: smiles | time
burypromote

+17

Jichi reviewed on 04 Jan 2012
Has been using OpenTerminal for years. And still my best choice on OS X Lion.

However, after switched to iTerm2 from iTerm, I found OpenTerminal didn't work with iTerm2. Wish the developer add the support for iTerm2 as well.

I used this app with iKey and mapped MAC+F1 to open iTerm here which saved me lot of time. I would definitely purchase this app if it goes on AppStore. Anyway, thx a lot for the developer for his work.
[Version 2.07]

1 Reply

burypromote

+1
Temhawk replied on 26 Jan 2012
+1, I want OpenTerminal to use iTerm2.
burypromote

+95
Ulyssesric commented on 21 May 2011
@monoclast:
Thanks for the "cdf" idea. But the script failed to work when the pathname contains white spaces. I've tweaked the script for a work-around:

alias cdf="eval "cd \"\`osascript -e 'tell app \\\"Finder\\\" to return the POSIX path of (target of window 1 as alias)'\`\"""

Adding this line to ~/.bashrc, and every terminal environment could "cdf" to the directory of the frontmost Finder window.
[Version 2.07]

1 Reply

burypromote

+95
Ulyssesric replied on 21 May 2011
It seemed MU will modify the escape character...
All the backslashes showed up there shall be doubled:

alias cdf="eval \"cd \\\"\\\`osascript -e 'tell app \\\\\\\"Finder\\\\\\\" to return the POSIX path of (target of window 1 as alias)'\\\`\\\"\""
burypromote

+95
Ulyssesric commented on 21 May 2011
@monoclast:
Thanks for the "cdf" idea. But the script failed to work when the pathname contains white spaces. I've tweaked the script for a work-around:

alias cdf="eval "cd \"\`osascript -e 'tell app \\\"Finder\\\" to return the POSIX path of (target of window 1 as alias)'\`\"""

Adding this line to ~/.bashrc, and every terminal environment could "cdf" to the directory of the frontmost Finder window.
[Version 2.07]


burypromote

+2
Ethan commented on 17 Aug 2010
By far the best approach for anyone who is a heavy cli user. cdto is buggy, not updated, and relies on appscript for iTerm. The background app is also a different approach than most so its speed is a bit faster.
[Version 2.07]


burypromote
+1

+56

Crunc reviewed on 29 Jul 2010
Amazing customer service, especially seeing how this is free! And such a useful utility. Thanks again for the tweak to make it work great with Visor!
[Version 2.06]


burypromote

+4
HeiLei commented on 01 Sep 2009
Snow Leopard compatibility? Any news?
[Version 2.0.5]

1 Reply

burypromote
Thomas Wiesehöfer (developer) replied on 29 Jul 2010
Oh, I'm sorry, I don't use the contextual menu myself and hadn't even noticed that it doesn't work in Snow Leopard anymore. Since Snow Leopard (in 64-bit mode) doesn't support contextual menu plugins at all, I have added a "service" that can be displayed in the contextual menu in Snow Leopard's Finder.

If you find another bug, please e-mail me directly and I'll try to help more quickly. (You can find my e-mail address at the bottom of the readme file.)
burypromote

+1

TexLogic reviewed on 25 Jan 2008
Extremely useful utility, nicely implemented.
[Version 2.0.4]


burypromote

+10
hazmat commented on 25 Jan 2008
Great stuff! Thanks so much.
[Version 2.0.4]


burypromote
Thomas Wiesehöfer (developer) commented on 05 Dec 2006
Thanks for sharing this idea!
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]


burypromote

+46
Jolly-Roger commented on 30 Nov 2006
For anyone interested, I accomplish the same thing with a simple addition to my ~/.bashrc file:

####################################################################
# implement cdf command #
# (changes the working dir to the front-most window of the Finder) #
####################################################################

cdf()
{
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]

2 Replies

burypromote

-9
cbx322 replied on 25 Jan 2007
Why not use:

cdf()

{

open .

}


;)
burypromote

+46
Jolly-Roger replied on 25 Jan 2007
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.
burypromote

+56
Crunc had trouble on 29 Jul 2010
I like this a lot, except that it doesn't seem to work well with Visor. I hope the developer can get that working. Perhaps in cooperation with the developers of Visor?
[Version 2.06]

4 Replies

burypromote
Thomas Wiesehöfer (developer) replied on 29 Jul 2010
It seems to work if you choose the "Use an existing Terminal session if possible" option and disable the "Use tabs instead of windows" option in OpenTerminal's preferences (hold down the option key while launching OpenTerminal to open the preferences window).
If it still doesn't work, please e-mail me.
burypromote

+56
Crunc replied on 29 Jul 2010
Well, that does make it work somewhat, but it doesn't open up the visor. It works invisibly, and then I need to bring up the Visor to see it. That will work for now, but any chance you could get it to open the Visor too?
burypromote
Thomas Wiesehöfer (developer) replied on 29 Jul 2010
I've made a very small change to OpenTerminal (so no new version number) and it can now open Visor. "Show on relaunch" must be selected in the Visor preferences.

Just redownload OpenTerminal and e-mail me if it doesn't work.
burypromote

+56
Crunc replied on 29 Jul 2010
It works great now! Thanks so much! 5 stars coming shortly...
burypromote

+3
Damien Pollet had trouble on 10 Sep 2008
2.0.4 doesn't seem to find (a recent) iTerm…
[Version 2.0.4]

2 Replies

burypromote
Thomas Wiesehöfer (developer) replied on 06 Oct 2008
The iTerm developers changed the bundle identifier. OpenTerminal 2.0.5 now recognizes the new identifier.
burypromote

+3
Damien Pollet replied on 06 Oct 2008
Thanks !
burypromote
jgc94131 had trouble on 21 Dec 2007
In Leopard Terminal now supports Tabs. Will you be updating OpenTerminal to support that?
[Version 2.0.3]

1 Reply

burypromote
Thomas Wiesehöfer (developer) replied on 25 Jan 2008
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.
burypromote

+3
Damien Pollet had trouble on 02 Nov 2006
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]



Kuean rated on 19 Dec 2010

[Version 2.07]


Downloads:10,313
Version Downloads:2,825
Type:Utilities : System
License:Free
Date:31 Jul 2010
Platform:Intel 64 / Intel 32 / OS X
Price:Free0.00
Overall (Version 2.x):
Features:
Ease of Use:
Value:
Stability:
Displaying 1-10 of 12
1 2 >
Displaying 1-4 of 4
Displaying 1-1 of 1
-
-
-
Please login or create a new
MacUpdate Member account
to use this feature
Watch Lists are available to
MacUpdate Desktop Members
Upgrade Now
Install with MacUpdate Desktop.
Save time moving files & cleaning
up space wasting archives.
OpenTerminal opens the Terminal with cd command.

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, supports Spaces, and it doesn't open superfluous terminal windows.

The sourcecode is also available.


- -