Can a Safari tab be detached with a macro?

Is it possible to use a macro to turn a Safari tab into a separate window? I searched the forum but didn't find anything related. I also searched but found no keyboard shortcut in Safari to detach a tab.
I'm pretty new at KM so I thought I'd ask.


Is this what you are talking about?

If so, this is what I use.

Here is the macro. You will have to put your favorite trigger on it.

Break Out Tab to new window.kmmacros (4.5 KB)



Nice macro. I have a much simpler setup as I'm usually using as 13" MacBook Air and wouldn't want it side-by-side.

I use ⌥ + Up-Arrow to trigger the menu item "Window » Move Tab to New Window"

I also use ⌥ + M to trigger "Window » [M]erge All Windows" for the times when I want to collect everything back again.


Or like this:

use AppleScript version "2.4" -- Yosemite (10.10) or later
use scripting additions

tell application id ""
  tell front window
    set currentURL to URL of current tab
    close current tab
  end tell
  make new document
  set URL of front document to currentURL
end tell

Safari: Tab to new window <4947 200320T013334>.kmmacros (2.0 KB)

The tab that should be transferred to the new window must be frontmost.

1 Like

Wow, thanks so much @kcwhat @tjluoma @Tom I'm going to try all of them!

1 Like