Skip to content

tIsGoud/save-safari-tabs-to-day-one

Repository files navigation

Save Safari tabs to Day One

Safari tabs to Day one 2

This AppleScript saves all tabs/URLs from all the Safari windows to a new entry in Day One 2.

NOTE: I recently switched to Bear, a Bear-version is coming soon.

The entry contains the tab names and URLs as clickable links.
URLs are grouped per browser window and seperated by a horizontal rule.
A "bookmarks" tag is added, the number of tabs and windows is displayed just below the title and in the title the name of the computer is used to identfy from which computer this entry originated.

By default the entry is created in the journal "🌐Bookmarks", and yes I use emoticons in my journal names. You can change the name of the journal to your liking but the journal will not be created for you. Make sure it exists before running the script.

After the initial creation of the entry it looks a bit weird. See below.

I was unable to fix this programmatically but it is simply resolved by clicking on "Edit" and "Done", Day One picks it up from there and the result looks like the previous image.

Next steps:

  • Download the zip file or clone this repository.
  • Open Script Editor and change the value of the variable "destinationJournal" to match your situation. The script does not create the journal for you so make sure it exists.
  • Run it from the Script Editor to test the script in your environment.

Once you made sure it works on your system you can:

BetterTouchTool configuration:

The resulting Touch Bar button:

About

Save all your Safari tabs in a Day One 2 entry.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published