I use the Terminal and Midnight Commander quite often. However, opening a new terminal window and then changing to the directory location where I need to use the command line takes time. The Toolbar Dragpoints hint brought me to an idea to create a short AppleScript that opens a new terminal window in the folder active in Finder:
on ApplicationIsRunning(appName)
tell application "System Events" to set appNameIsRunning to exists (processes where name is appName)
return appNameIsRunning
end ApplicationIsRunning
tell application "Finder"
try
set winLoc to target of the front window as text
on error
set winLoc to home as text
end try
set pth to quoted form of POSIX path of winLoc
end tell
if ApplicationIsRunning("Terminal") then
tell application "Terminal"
do script "cd " & pth & ""
end tell
else
tell application "Terminal"
activate
set twID to index of front window
end tell
tell application "Terminal"
do script "cd " & pth & "" in window twID
end tell
end if
tell application "Terminal" to activate
Mac OS X Hints
http://hints.macworld.com/article.php?story=20110414032212445