Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the Terminal I use open . to open the current directory using Finder.

Open folders in new tabs settings is set in the Finder, yet it opens a new window every time. By the end of a project/day I have dozens of these windows open.

How do I get the Finder to open a new tab, instead of a new window when using open . in the Terminal?

share|improve this question
I don't think open can handle that for the moment. – Matthieu Riegler Dec 15 '13 at 18:03
Related:… – Nick Dec 24 '13 at 17:52
Perhaps, some AppleScript hacking could resolve this problem. (sorry, I don't have Mavericks to test it, but you can try to adapt the solution here). – Igor Hatarist Feb 4 '14 at 9:47
...and hack your shell to replace the default "open ." behaviour with this applescript launch. – Igor Hatarist Feb 4 '14 at 10:41

You cannot use open . to open a new tab in Finder, though it is possible to open a new tab using AppleScript - from How do you duplicate current open Finder view in new tab (Mavericks)?

tell application "Finder"
    set t to target of Finder window 1
    set toolbar visible of window 1 to true
end tell
tell application "System Events"
    keystroke "t" using command down
end tell
tell application "Finder"
    set target of Finder window 1 to t
end tell

Alternatively from

set docs_path to (path to documents folder) as string
set Sat_folder to docs_path & "Sat:"
set ABC_folder to (Sat_folder & "ABC:") as alias

tell application "Finder"
   open Sat_folder
end tell

tell application "System Events" to keystroke "t" using command down

tell application "Finder"
   set target of front window to ABC_folder
end tell
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .