Giter VIP home page Giter VIP logo

reading-list-to-instapaper's Introduction

Reading List to Instapaper

blog.ryantoohil.com

Intro

Instapaper is great and I use it all the time. The bookmarklet works fantastically on the desktop, but not as well in iOS (particularly on the iPhone). The issue on the iPhone is that, to execute the bookmarklet, you have to navigate back up your bookmarks to find it.

It's a lot easier to use Safari's built in "Add to Reading List" which is right in that little "Send" icon in the chrome.

This little script attempts to bridge the gap and let you use Safari's Reading List (and the nifty quick icon in iOS, as well as Shift-CMD-D in Safari) to add items to your Reading List, that get automagically added to Instapaper.

A couple of notes: I'm not a great Rubyist, so this code is probably cringe-incuding to most folks. Feel free to turn it into 10 beautiful lines of code. But, hey, this works, right? It'll only work on the Mac, but I'm sure someone can figure out how to make it work on Windows (does Windows Safari have the Reading List?).

Setup

  • Clone the repo
  • chmod +x readinglist_to_instapaper.rb
  • Open readinglist_to_instapaper.rb and edit the credentials to be your Instapaper credentials
  • Install the necessary gems. I should include a gemfile or something. I'll do that at some point.
  • Open com.ryantoohil.readinglisttoinstapaper.plist and change the paths to match your paths (the path to the ruby script, and the path to your Safari Bookmarks.plist). This should be pretty obvious.
  • launchctl load . This will load up the plist as a launchagent.

That should pretty much be it. Open up Safari and add something to the Reading List. A few seconds later, you should see a little Growl popup (assuming you have Growl installed) that tells you if it succeeded to add the article.

I'll clean this up as I go. Please feel free to add issues or pull requests. I have little idea what I'm doing, but I'll do my best to incorporate them.

Revisions

  • Mar 31, 2012: Initial Commit
  • May 6, 2012: Removed rails dependency and cleaned up DateTime usage. I think.

reading-list-to-instapaper's People

Contributors

rtoohil avatar scottfwalter avatar

Watchers

 avatar  avatar

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.