Please help create applescript to export HTML

I have tried modifying the Print HTML code to make the printouts more compact, but I am unable to get the margins of the pages any smaller than the default. The alternative that I have found is to export my perspective as an HTML file which prints really compact. I have been playing around with applescript and have been unable to create a script that will export my lists as HTML, could someone here help me get started?

I am just looking for the basic code to get applescript to export the current list I am looking at to an HTML to a predetermined location.

Any help would be greatly appreciated. Thanks!