10

I often have a good 150 to 200 tabs open in Safari at all times because this is where I like to keep all my current work. Obviously, all open tabs are never displayed at the same time when there are so many...

I am wondering if a list of all currently open tabs is available in Safari.

enter image description here

4 Answers 4

7

I don't believe there is a list of tabs available, however, there is a tab overview in Safari if you click

View > Show All Tabs

The keyboard shortcut is Shift+Command+\

Which will show you all of your tabs, grouped by which website they are.

Or if you have pinch-to-zoom support, you can zoom out and it will automatically jump into this view.

7
  • This is great! I didn't know this feature was there. I guess I could have searched for it but sometimes it's hard to search for something you don't know exists. I like your answer better because of the visual result that comes in this list, but the other answer is good too!... Commented Sep 19, 2015 at 23:12
  • 1
    I agree, it is definitely something hard to search for. Apple likes to hide a lot of features like this. @fabriced
    – jroschen
    Commented Sep 20, 2015 at 18:25
  • 5
    Uh, no. "Show All Tabs" does not show all tabs. It shows the tabs in the current window. Commented Oct 20, 2016 at 20:54
  • Somehow this stopped working in Sierra Commented Dec 19, 2016 at 13:18
  • @IvanBalashov I'm running Sierra 10.12.2 and it appears to be working fine on my end.
    – jroschen
    Commented Dec 19, 2016 at 21:13
9

Here is an AppleScript that will get the name of all Tabs in all Safari windows and show them in an unsaved TextEdit document.

You can save this as a plain script and access it from the Script menu on the Menu bar if you enable it in Script Editor's Preferences. Or as an App and it can be placed on the Dock.

tell application "Safari"
    set windowCount to number of windows
    set docText to ""
    repeat with x from 1 to windowCount
        set tabcount to number of tabs in window x
        repeat with y from 1 to tabcount
            set tabName to name of tab y of window x
            set docText to docText & tabName & linefeed as string
        end repeat
    end repeat
end tell
tell application "TextEdit"
    activate
    make new document
    set the text of the front document to docText
end tell

The above source code was modified from Generate a List of Open Safari Tabs with AppleScript.

1
  • Great answer, thanks! Definitely a tie with the other answer. Thanks a lot, I appreciate! Commented Sep 19, 2015 at 23:12
3

A slight modification to [user3439894][1] AppleScript in order to also get the URL of the tab and save that in the resultant text file.

tell application "Safari"
set windowCount to number of windows
set docText to ""
repeat with x from 1 to windowCount
    set tabcount to number of tabs in window x
    repeat with y from 1 to tabcount
        set tabName to name of tab y of window x
        set theURL to URL of tab y of window x
        set docText to docText & tabName & space & theURL & linefeed as string
    end repeat
end repeat
end tell
tell application "TextEdit"
    activate
    make new document
    set the text of the front document to docText
end tell
1

You can also use an app called Witch that lets you view a list of Safari Windows and Tabs in a drop down menu, allowing you to choose which one you want.

https://manytricks.com/witch/images/4/menubar.jpg

You must log in to answer this question.

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