Sessions Exporter

This page provides a shell script to export your saved sessions to a textual format.

  1. Click here to download the sessions-exporter.zip archive.
  2. Double-click the expanded sessions-exporter.command script.
  3. Check that the output is as expected.

If all goes accordingly, your saved sessions should be exported to two files in a folder on your Desktop. The JSON file is the canonical format, and can be archived, converted, or imported into other Sessions installations. The HTML file is a conversion of the JSON file to the Netscape bookmarks format readable by all modern browsers; as this file may be very large, some browsers may not be able to import it quickly or successfully.

In keeping with Apple's ongoing objective of steadily restricting its users from running programs of their own choosing on their own machines, macOS 10.14 Mojave has erected further barriers which must be worked around for this script to function. In addition to overriding Gatekeeper, Terminal.app must be added to the Full Disk Access section of the Privacy tab in the Security & Privacy pane of System Preferences in order for sessions-exporter.command to be able to see your Sessions database. This permission can be revoked again once the script has finished.