Created
September 11, 2014 15:13
-
-
Save nalanj/fd28450092176798fd29 to your computer and use it in GitHub Desktop.
Instapaper to Reading List
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'csv' | |
urls = [] | |
CSV.foreach("instapaper-export.csv") do |row| | |
urls << row[0] | |
end | |
urls.reverse.each do |url| | |
puts "Adding: #{url}" | |
`osascript -e 'tell application "Safari"' -e 'add reading list item "#{url}"' -e 'end tell'` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment