Sunday, 1 May 2011

Opening new Terminal window from Finder

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 ...


Add to digg Add to Reddit Add to Slashdot Email this Article Add to StumbleUpon

Source: http://feeds.macosxhints.com/click.phdo?i=97f4823b4386d815062928d045a3cf0f

apple itablet news imac store news from apple mac computer news

No comments:

Post a Comment