How can I save state of tabs in Safari? [duplicate]

Solution 1:

To see your entire history, select Show All History on the History menu, or press Cmd-Y.

To restore your tabs after each restart, open Preferences from the Safari menu, go to the General tab, and select Safari Opens With All Windows from Last Session.

The main advantages to using Safari over Chrome are its better system integration, which you may or may not care about. Examples of this are proper use of the Notification Centre, ability to AirPlay (some) videos from your browser to other AirPlay devices, iCloud password and bookmark syncing between devices, and Handoff when you want to open a page on your Mac, and continue reading it on your iOS device (or vice versa).

Historically, Chrome has also been a bit of CPU hog compared to Safari, which ultimately impacts your battery life. I haven't checked recently whether that's still the case.

Solution 2:

Check out the Safari extension SessionRestore. It's similar to SessionBuddy for Chrome. It lets you save a session manually, give it a name, autosave your tabs every so many minutes, and easily restore.

enter image description here

What it doesn't appear to do is let you edit an already-saved session the way SessionBuddy does.

Solution 3:

I have develop this open source Tab Manager for Safari, and I think it's what you need.I hope you like it. All the comments are welcome.

https://github.com/morsamatias/UltraTabSaver

Solution 4:

command+q closes safari and all tabs are "remembered" so that the next time you reopen safari, those tabs will re-appear. Of course if you close tabs or close all tabs, you can always restore those tabs as described above (under the history section on the toolbar).

I've noticed that if I close safari by using the red button on the top left, when you reopen, you start of clean. So use command+q to close and keep your tabs for the next reopen.

[]

These settings are in System Preferences → General.

Solution 5:

This blog answers the core part of the question without requiring any extensions. It does not cover automatic opening of saved tabs but is still useful.

TL;DR

  1. Access Safari menu Bookmarks > Add Bookmarks for These x Tabs...
  2. Select a Bookmarks Folder and give a name to your session
  3. When you want to access the session, right-click the folder and "Open in New Tabs" or "Automatically Replace Tabs"