Postscript printer
13-Feb-92 09:52:27
Sb: #19887-Postscript printer
Fm: John Draper 76703,4322
To: John Lemoine 75320,143
Here's another little trick I use when sending stuff to an OKI-400. Since
it is not a PostScript printer, I use post1.6 to create the bitmap, but
want to leave straight ASCII files untouched. You can easily modify this so
that it works with your setup.
/*
* lpr.rexx
*
*/
parse arg x
if ~exists(x) then do
say "Can't find" x
exit
end
call open(infile,x)
if left(readln(infile),2) = '%!' then do
call close(infile)
'postlj -s0 -c0 s:init.ps' x
end
call close(infile)
else
copy x 'PRT:'
This ARexx script looks at the first two bytes of the file, and if they are
'%!', it is assumed to be a PosScript file, and is processed by postlj.
Otherwise it is sent directly to the printer.
-larry