Import From Instapaper via NetNewsWire
Summary: Imports unread articles from your Instapaper subscription in NetNewsWire.
Requires: Instapaper, NetNewsWire 3
Install Location: ~/Library/Scripts/Applications/NetNewsWire/
Last Modified: 2018-06-07
Description
Go to your Instapaper in Safari, either the main Unread view or a particular folder. Click the RSS button. (With Safari 6 you would need to install Subscribe to Feed.) This should create a subscription for it in NetNewsWire. When you run this script, EagleFiler will import any unread articles from that subscription. It will then mark them as read in NetNewsWire, so they aren’t re-imported the next time you run the script.
Note: This script requires NetNewsWire 3 because NetNewsWire 4 is not sufficiently AppleScriptable.
Installation Instructions · Download in Compiled Format · Download in Text Format
Script
tell
application
id
"com.ranchero.NetNewsWire"
-- Enter your Instapaper feed's URL here. It may be something like:
-- https://www.instapaper.com/rss/12345/abcdef
set
_instapaperURL
to
"http://www.instapaper.com/u"
set
_feed
to
first
subscription
whose
home URL
starts with
_instapaperURL
-- Or, to import the selected feed (works for any feed, not just Instapaper):
-- set _feed to selectedSubscription
set
_headlines
to
_feed's
headlines
repeat
with
_headline
in
_headlines
tell
_headline
if
not
isRead
then
my
importURL(
URL)
set
isRead
to
true
end
if
end
tell
end
repeat
end
tell
on
importURL(
_url)
tell
application
"EagleFiler"
-- To import using the format currently chosen in the preference:
import
URLs
{
_url}
-- You can also specify a particular format:
-- import URLs {_url} Web page format Web archive format
end
tell
end
importURL