Description: This script will download enclosures from RSS feeds in NetNewsWire 2+ via a command line tool like wget or curl.
Requirement: Mac OS 10.3.x and NetNewsWire 2+
Newer versions of NetNewsWire 2+ has a nice built in function to download enclosures so this script is obsolete.
-- Script Start (* Script for NetNewsWire 2+ to download enclosures via the command line 2004-10-06 by Fredrik Jonsson <mailto(colon)fredrik(at)combonet(dot)se> home page <http://xdeb.org/wiki/AppleScript> *) property dwlApp : "/sw/bin/wget" -- Download with wget installed via Fink -- property dwlApp : "/usr/bin/curl -O" -- Download with curl installed by Apple property dwlFolder : "~/Download/Podcasts/" -- Your download folder -- property dwlFolder : "~/Desktop/" -- Your Desktop folder try tell application "NetNewsWire" activate set theurl to enclosure URL of selectedHeadline end tell if theurl is not "" then tell application "Terminal" activate do script with command "cd " & dwlFolder & "; " & dwlApp & " " & theurl tell window frontmost set custom title to "Download enclosure" set position to {200, 200} set background color to "grey" set number of columns to 80 set number of rows to 20 end tell end tell delay 2 tell application "NetNewsWire" to activate else beep end if end try -- Script Stop