[uf-discuss] NNW Script: Subscribe To hAtom

Chris Casciano chris at placenamehere.com
Thu Mar 23 14:54:09 PST 2006

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:

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 

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 

[ Chris Casciano ]
[ chris at placenamehere.com ] [ http://placenamehere.com ]

More information about the microformats-discuss mailing list