Coder Social home page Coder Social logo

save-safari-tabs-to-day-one's Introduction

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:

save-safari-tabs-to-day-one's People

Contributors

tisgoud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

shawnhank

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.