Since I work from RFCs a lot, I decided it would be a good idea to start downloading them locally to make them easier to refer to, search, annotate, and so on. I’ve put together a quick AppleScript so that if I’m browsing my RFCs group and don’t find the one I’m looking for, I can choose Download > RFC from the script menu, enter the number, and it does the necessary. Thought I’d post the script here for anyone else who deals with RFCs or other reference documents.
set response to display dialog "RFC number?" default answer "" with icon note buttons {"Cancel", "Download"} default button "Download"
set rfcNum to text returned of response as Unicode text
if rfcNum is not "" then
set theURL to "https://www.rfc-editor.org/rfc/rfc" & the text of rfcNum & ".html"
tell application "DEVONthink"
create formatted note from theURL in current group
end tell
end if
Improvements welcome of course!