A simple little utility to save Safari tabs from the current window to a file and then open them again later. (Requires an Internet connection: this just saves the URLs, not the page contents.)
To Install
- Download the components.
- Double-click Save Tabs....workflow to install the service.
- Drag Open Safari Tabs to Applications to copy it there.
First-Run
- Find Open Safari Tabs in Applications and control-click (right-click) on it and select Open.
- Agree to the Gatekeeper prompt to open the application.
- Open Safari Tabs will ask for a file. Open the example tabset in the Extras folder to test it.
Granting Permission to Control Safari
- To give Open Safari Tabs permission to actually open Safari tabs, go to Apple Menu > System Preferences... and then open Security & Privacy and open the
Privacy
tab.
- Unlock the preference pane by clicking the lock 🔒 at the bottom-left, and then in the list on the left, scroll down and click ⚙️Automation.
- In the list on the right, find Open Safari Tabs, and make sure Safari underneath is checked ☑️ off.
To Use
- In Safari, go to Safari > Services > Save Tabs...
- Save the tabs somewhere.
- Double-click the saved tabs file to open them all again in a new Safari window.
- In System Preferences, go to Keyboard >
Shortcuts
> ⚙️Services, and scroll down to General.
- Check ☑️ off Save Tabs... and on the right where it says none, double-click to type a keyboard shortcut.
- Type the shortcut, and click a different item in the list to save.
System Requirements
This has been tested on macOS Mojave and macOS Big Sur. I cannot help you if it does not work on your system.
This kit is made of two components: a workflow created in Automator that gets all the URLs in the current Safari window and saves them in a list in a text file with a special extension, and an AppleScript packaged into an application using Platypus that reads this text file and opens each URL it encounters in a new tab.
The source code (such as it is) can be inspected in the “saver” by opening it in Automator and in the “opener” by control-clicking, selecting Show Package Contents and browsing to Contents > Resources and opening new_window in Script Editor.
📦 Package Contents
Save Safari Tabs...Workflow to save tabs as a list in a text document with special extension.
Open Safari TabsApplication containing bundled AppleScript that reads that text file and opens each URL in a new tab. Declares to the system that it can open files of that extension and only that extension (this also makes QuickLook ignore those files and gives them a nice icon).
LicenceTerms and conditions about the application, which is built using Platypus
Example Tabs on Sunday, May 9, 2021Example document to open some tabs in Safari. (This can also be previewed by any text editor.)
Platypus Sur IconPlatypus icon for Big Sur because the default one is creepy.
Link to Download Platypus Yourselfhttps://sveinbjorn.org/platypus