Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!chinacat!woody From: woody@chinacat.Unicom.COM (Woody Baker @ Eagle Signal) Newsgroups: comp.lang.postscript Subject: Re: what am I printing on? Summary: the best way Message-ID: <1673@chinacat.Unicom.COM> Date: 4 Nov 90 04:46:16 GMT References: Organization: a guest of Unicom Systems Development, Austin Lines: 18 In article , jwz@lucid.com (Jamie Zawinski) writes: > 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 Generaly, there is a command that will return the name of the printer to you. The following facilities of statusdict are available to all Adobe postscript interpreters according to the RED book, and so should be present on all complient clones. product revision These should suffice to allow you to determine these things. for example, assuming that GHOSTSCRIPT does not have it defined, if you do do product, you may get an error. Doing so on another machine will get you a name. Granted, the name can be changed, but still it should suffice to know that a machine is NOT a laserwriter of you need to make that determination. Cheers Woody