Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!cheops!colemanm From: colemanm@cheops.qld.tne.oz.au (Mark Coleman) Newsgroups: comp.lang.postscript Subject: PostScript headers Message-ID: <1991Jun11.092741.27041@cheops.qld.tne.oz.au> Date: 11 Jun 91 09:27:41 GMT Organization: Telecom Australia, TNE Computer Support Services Lines: 22 I'm sorry if this is yaFAQ but I don't normally frequent this group. I'd like to know what is the absolute definitive way to recognise a Postscript file. I'm currently using the following method in my interface script under UN*X head -3 /tmp/$$ | grep %! It seems to be the only way that does work all the time. Although I thought that when the previous interface script I wrote used to look for a %! as the first 2 chars in the incoming file but of course Micros*ft Word for Windows stuffed it because it sends a cntrl-D at the start of the file. Any pointers would be appreciated.....MarkC..... -- Mark Coleman O O EMAIL: colemanm@cheops.qld.tne.oz.au Telecom Australia | FAX: +61 7 837 4704 TNE Computer Support Services ***** PH: +61 7 837 3143 Brisbane, Queensland. OZ \===/ "You'll find these are my opinions alone"