Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!adobe!heaven!heaven.woodside.ca.us From: glenn@heaven.woodside.ca.us (Glenn Reid) Newsgroups: comp.lang.postscript Subject: Re: How can I tell if a file is "postscript" Message-ID: <456@heaven.woodside.ca.us> Date: 12 Mar 91 08:22:04 GMT References: Sender: glenn@heaven.woodside.ca.us Lines: 26 A couple of very minor details, for the curious and intrepid: In article jj1h+@andrew.cmu.edu (Joseph Jackson) writes: > "pscomm" looks at the first few bytes of the input stream looking for > the "%!" PostScript magic. If it doesn't find it, it will call > "enscript" to convert the (assumedly text) file to PostScript. You can > change what program is called by setting the PSTEXT variable in the > .options file which is located in the spool directory for the given > queue. > > Another feature allows TranScript to handle both face-up and face-down > printers. "pscomm" can be configured to call a page reversal filter for > selected printers. It uses the same "psrev" command which is normally > made available to users. This is almost right, with the caveat that "pscomm" does not call "enscript" and "psrev", it calls special-purpose (and less-fully-featured) similar programs called "pstext" and "psrv", respectively. See the man page for "pscomm" for more details. -- Glenn Reid RightBrain Software glenn@heaven.woodside.ca.us NeXT/PostScript developers ..{adobe,next}!heaven!glenn 415-851-1785 (fax 851-1470)