Posting to Google Reader from NetNewsWire

One reason I use Google Reader is to share interesting articles in my shared items page. However, I find that I’m more productive when I use NetNewsWire, since I’m in control of how & when it fetches new items, so I spend less time reading news.

I’ve been looking for a way to share items in Google Reader from NetNewsWire. One way I did it was by subscribing to my NetNewsWire clippings feed, which I make publicly visible in Reader. It doesn’t appear in my shared items, though.

I’ve found a better solution, although it still isn’t perfect. This AppleScript is based on Google’s “Note in Reader” bookmarklet. It should be placed in NetNewsWire’s script folder. You can then choose ‘Post to reader’ in NetNewsWire’s script menu to open the selected news item in Safari and open a box to post it to your shared items.

tell application "NetNewsWire"
	set u to URL of selectedHeadline
end tell
tell application "Safari"
	make new document with properties {URL:u}
	delay 2
	do JavaScript "var  b = document.body;
var  GR________bookmarklet_domain = 'http://www.google.com';
if (b && !document.xmlVersion) {
    void(z = document.createElement('script'));
    void(z.src = 'http://www.google.com/reader/ui/link-bookmarklet.js');
    void(b.appendChild(z));
} else {}" in document 1
end tell

1 thought on “Posting to Google Reader from NetNewsWire”

  1. Thanks for this tip! I've been trying to find a way to do this for the longest time.

    Now if only NNW could sync with GReader like FeedDemon does.

    Reply

Leave a Comment