Skip to content

Commit 404cda5

Browse files
committed
Reading List post
1 parent fbc2ec7 commit 404cda5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
layout: post
3+
title: Reading List to Instapaper
4+
categories:
5+
- blog
6+
---
7+
8+
When using Safari on my iPhone, I often come across articles that I want to read later. On my laptops I have bookmarklets that will push articles to certain subfolders within Instapaper. I have installed the same bookmarklets within mobile Safari too, but they feel like second class citizens. I want Reading List functionality tied to Instapaper.
9+
10+
Enter [Ryan Toohil's Reading List to Instapaper script](http://blog.ryantoohil.com/2012/03/using-safaris-reading-list-to-feed-instapaper.php).
11+
12+
The [installation process](https://github.com/rtoohil/Reading-List-to-Instapaper#setup) was pretty simple but I just couldn't get it working. I was able to run the script manually, but I couldn't get it to work with launchctl.
13+
14+
After a few hours of troubleshooting I found two issues.
15+
1. You can't have `~/` in the path within the plist file for launchctl
16+
2. When the script is ran from launchd, it uses the system ruby environment instead of rvm
17+
18+
Solution
19+
1. Simple, just use the full path
20+
2. To fix issue 2, I modified my hash bang to include the full path to the rvm ruby instead of just ruby ([Based on this answer on stack overflow](http://stackoverflow.com/questions/5199292/select-rvm-gemset-in-script-header/5209739#5209739)).
21+
22+
`#!/usr/bin/env /Users/queuebit/.rvm/rubies/ruby-2.0.0-p0/bin/ruby`

0 commit comments

Comments
 (0)