Path: utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!swrinde!ucsd!ucbvax!agate!shelby!neon!lucid.com!jwz From: jwz@lucid.com (Jamie Zawinski) Newsgroups: comp.lang.postscript Subject: what am I printing on? Message-ID: Date: 2 Nov 90 19:40:34 GMT Sender: jwz@lucid.com Organization: Lucid, Inc., Menlo Park, CA Lines: 9 What's the best way for a PostScript program to tell what kind of device it's printing on? Basically, I would like a program to be able to notice that it is running under GhostScript, for example, instead of on a LaserWriter (Don't ask why...). Probably the way to do this is to test for the existence of certain dictionary entries; any suggestions as to which are the best ones to look for? (Remember that most previewers have a stubbed-out definition of statusdict, so it's not a trivial problem.) -- Jamie