Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!visix!news From: amanda@visix.com (Amanda Walker) Newsgroups: comp.sys.mac.programmer Subject: Re: How do I determine which LaserWriter is selected in the Chooser? Message-ID: <1991Mar7.054112.6329@visix.com> Date: 7 Mar 91 05:41:12 GMT References: <1991Mar4.201133.9126@mtxinu.COM> <812@treehouse.UUCP> <12120@adobe.UUCP> Sender: news@visix.com Distribution: usa Organization: Visix Software, Inc., Reston, VA Lines: 21 In article <12120@adobe.UUCP> gelphman@adobe.COM (David Gelphman) writes: The thing to remember is to NOT look directly in the file named 'LaserWriter'. This may not be the users current printer driver. The correct thing to do is look at STR resource -8192 in the system file. Not even this will work with System 7.0. What I do is, roughly: PrOpen(); GetResource('PAPA', ...); DetachResource(...); PrClose(); This should work with any AppleTalk-based PostScript printer driver. It's still undocumented, so it of course might change at some point, but this seems to be the most robust way to do it so far. -- Amanda Walker amanda@visix.com Visix Software Inc. ...!uunet!visix!amanda -- "I'm not a vegetarian because I love animals; I'm a vegetarian because I hate plants." --A. Whitney Brown