Printing to PDF in Leopard

This hint today in MacWorld: Keyboard Tricks makes it easy to print to a PDF from a script:

The hint explains that with the Print dialog open, you can assign a keyboard shortcut in your Keyboard & Mouse Preference Pane to “Print to PDF.” (remembering that the final three dots there are an ellipsis obtained with Option-Semicolon). I assigned Control-Option-Command-P, so this script works nicely:

tell application "Camino" to Get URL "http://bbs.applescript.net/"
delay 2
tell application "System Events" to tell process "Camino"
	keystroke "p" using {command down} -- open the print dialog
	keystroke "p" using {command down, option down, control down} -- then invoke your shortcut
end tell
-- at this point you can fancy it up for your purposes