🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #3541

what am I printing on?

#3541
From: Jamie Zawinski
Date: Fri, 02 Nov 1990 19:40
9 lines
940 bytes
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
Technical Details
Message-ID: <JWZ.90Nov2114034@kolyma.lucid.com>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <JWZ.90Nov2114034@kolyma.lucid.com>
Date: 2 Nov 90 19:40:34 GMT
Sender: jwz@lucid.com
Organization: Lucid, Inc., Menlo Park, CA
Lines: 9