I've went ahead and created the Automator workflow that let's me have a "print this file" right-click menu in Finder.
It works fine for pdf and txt files, but if I try the same on a html file, the printer spits out a blank page. Obviously the file needs to be rendered by a browser first, then printed, but is there a way to do this?
It's not an option for me to convert this to pdf, the contents of the document are randomized with javascript. I would want to preserve this, I do not want identical content to print every time.
If this could be added to the same right-click menu item, that would be good. If it has to open Safari in the background or something like that, that's not a dealbreaker, though I'd like for it to close itself after printing.
Chrome is the default browser (and almost always open) if that matters.