rentzsch.com: tales from the red shed

NetNewsWire Subscription HTML Output

AppleScript
Jeremy Zawodny asks:
On a related note, does anyone know how to automatically export my subscriptions from NNW and scp (or ftp?) them somewhere? Can AppleScript (about which I know nothing) do this?

Yes.

Note: Safari seems to want to open the file instead of downloading it, even after I explicitly set its mime type to application/octet-stream. Even if you control-click on the link, and choose "Download Link to Disk", it will rename the extension to ".txt" from ".scpt". Dave, is this some sort of anti-virus feature? Anyway, curl -O http://rentzsch.com/share/NetNewsWire2HTML.scpt definitely works. Sigh.

The script requires NetNewsWire nonLite (the Lite version isn't scriptable). This script merely dumps to partial HTML, but AppleScript can easily dump the output to a file and use scp (via do shell script) to upload the file anywhere you want.

Update: Nello tells me IE5.2.2 also doesn't like to download the .scpt file. I wrapped the script in a tarball as a work-around.

Friday, February 28, 2003
12:00 AM