Here's my first attempt* at making a script that provides the ability to subscribe to any web page with embedded hAtom content with NetNewsWire on OS X (not lite?).

Currently Available At:
http://placenamehere.com/temp/Subscribe%20To%20hAtom.0.1.zip

Extract the zip and move its contents somewhere useful (like ~/Library/Application Support/NetNewsWire/Scripts/)

After you find a page you want to subscribe to (like http://chunkysoup.net/ ), In NNW got to:

File > New Special Subscription > Script...

Select the "Subscribe To hAtom.scpt" script from the folder you placed it it.

enter the URL of the web page in the "Args" field in the little popup and close it... it will now show in your reader like any other subscription.

The package includes the apple script file and the current available versions of hAtom2Atom.xsl and uri.xsl. I'll write it up and give it a proper home this weekend but figured I'd post the early cut and get feedback. The applescript is rather simple...

on main(subscriptionuri)
        set transform to "./hAtom2Atom.xsl"
        return do shell script "xsltproc " & transform & " " & subscriptionuri
end main




NOTE: tidy is not installed on this machine (10.3.9) so I left it out of the command I'm executing.


* well second, I got it working as a shell script too, but I thought applescript would be easier to document / no need to deal with execute permissions.

--
[ Chris Casciano ]
[ [EMAIL PROTECTED] ] [ http://placenamehere.com ]

_______________________________________________
microformats-discuss mailing list
[email protected]
http://microformats.org/mailman/listinfo/microformats-discuss

Reply via email to