Hey guys,
I often read news using RSS feed. There wasn’t any script available in the community that connects Devonthink and Instapaper so I made one. Hope someone finds use in it!
This is the smart rule setting and the following is the script:
on performSmartRule(theRecords) tell application id "DNtp" set theUsername to "Your Instapaper Email Address" set thePassword to "Your Instapaper Passworld" try show progress indicator "Sending to Instapaper" steps (count of theRecords) without cancel button repeat with theRecord in theRecords set theURL to (URL of theRecord) set theName to name of theRecord step progress indicator theName set theStatus to 0 set sendArticleToInstapaper to "https://www.instapaper.com/api/add?username=" & theUsername & "&password=" & thePassword & "&title=" & theName & "&url=" & theURL download URL sendArticleToInstapaper try set theResponse to last downloaded response set theStatus to |http-status| of theResponse if theStatus is not 201 then error on error log message theURL info "Invalid URL (HTTPS" & (theStatus as string) & ")" set theGroup to create location "/Invalid URLs" in (database of theRecord) replicate record theRecord to theGroup end try set unread of theRecord to false end repeat hide progress indicator on error error_message number error_number hide progress indicator if the error_number is not -128 then display alert "DEVONthink" message error_message as warning end try end tell end performSmartRule