I know this has been asked before, but I can't find it...what sort of printing automation schemes have people come up with in Max? I'd like to be able to export a tiff file from a jit.matrix and print it automagically. Any suggestions or examples?
Applescript is a possibility...I started going the shell route, which worked...almost. Of course my printer doesn't seem to support the lpr option "ppi" so it want to prints big at low-res. Imagemagick was then installed, which works from Terminal, but the same command thru the shell object doesn't do the trick:
lpr works just fine, also for high resolutions. as long as the image you are printing is saved with that resolution cups will respect that and print in the apropriate size.
you can write a very simple shell script that starts lpr and then call that script from your application. I have only done this with pd but there should be no problem doing this with max. in pd there is a "shell" object that makes the trick.
a shell script could look like this:
# the var $1 will be replaced with the first command line arg
and the shell object would look like this
[shell scriptname printfilename]
only you have to use absolute paths to make this work
I think Perl is more than I need. lpr works fine here too, but the problem is that an image exported from jitter has a density of 72 dpi. So I thought imagemagick would do the trick of changing the density to whatever I wanted. I guess I could write a shell script as a work around and call that script from Max using the "shell" object - that is a good suggestion.
But ultimately that doesn't enlighten me as to why the same command (with full paths) in the Terminal doesn't work with shell! Hmm...maybe I'll send a mail to shell's author...