View Source in NNW

November 5, 2007

Maybe it’s just me, but I couldn’t, for the life of me, figure out how to view the XML source of a newsfeed in NetNewsWire. Yes, I even checked Help…

Luckily NNW is AppleScriptable:

tell application "NetNewsWire"
set theSource to XML text of selectedSubscription
tell application "TextEdit"
    make new document with properties {text:theSource}
end tell
end tell

Kludgy? You tell me. Speaking of NNW and AS, I wrote a script that exported NNW feeds to an iPod a while back. :)

UPDATE Hehe, just found the “Open XML Text in TextEdit” command in NNW’s script menu. The bad news is that it doesn’t work:

UPDATE First of all, the “Open XML Text in TextEdit” is not broken, the selectedSubscription property just doesn’t seem to work with certain feeds (NNW bug? dunno…) SECONDLY, this is all pointless because, as Argo pointed out, you can just Ctrl-click on the feed headline and select “View XML Source”. :-)