Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!njin!princeton!phoenix!pucc!NMKATZ From: NMKATZ@pucc.Princeton.EDU (Nicholas M. Katz) Newsgroups: comp.sys.next Subject: printing mac-generated postscript files on the NeXT Message-ID: <8436@pucc.Princeton.EDU> Date: 21 May 89 04:36:37 GMT Reply-To: NMKATZ@pucc.Princeton.EDU Organization: Princeton University, NJ Lines: 29 Disclaimer: Author bears full responsibility for contents of this article The sed script that Steve Dorner posted here which cleaned up the apple LaserPr ep file so 0.8 would print it doesn't work in 0.9. Fooling around, I discovered that the reason is that Steve's script puts a gsave at the very beginning, rig ht after the %!, and ends with a grestore. These are what 0.9 doesn't like! So here is the trivial modification of Steve's sed script, which when run on a com mand-k generated postscript file turns it into something that 0.9 will print: -----cut here------ 1i\ %! 402,421d 82,83d 20,24c\ /ok true def\ /LW false def\ /waittimeout 300 def\ /fc {} def 8,18 d -------cut here--------- Of course, once you have run this on a single command-k generated file, you can cut off the bottom little part (the stuff afte the lines %%EndProcSet %%EOF and save the result as "prepend". On subsequent goes, you need only prepend thi s "prepend" to the much shorter file that command-f generates on the mac. Who knows what wonders 1.0 will bring. nmkatz@pucc.bitnet