Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!purdue!decwrl!decvax!spray!anson From: anson@spray.CalComp.COM (Ed Anson) Newsgroups: comp.sys.mac.programmer Subject: Re: Chooser and printers Message-ID: <2461@spray.CalComp.COM> Date: 19 Oct 88 13:43:43 GMT References: <553@cf-cm.UUCP> Reply-To: anson@spray.UUCP (Ed Anson) Organization: CalComp, A Lockheed Company, Hudson, NH, USA Lines: 20 In article <553@cf-cm.UUCP> ralph@computing-maths.cardiff.ac.uk (Ralph Martin) writes: >How can an application program tell if a user has used the "Chooser" >to switch printers? Is there a global that records the current choice? The resource 'STR ' -8192 in the System file records the file name of the currently chosen printer resource file ("driver"). However, your application shouldn't need to know if a change is made. Anything it does that might depend on the printer type should be done every time a print is requested by the user. You certainly shouldn't rely on the name of the printer to know its type, since names can be changed quite easily. > >Thanks, Ralph I hope this helps. Ed -- ===================================================================== Ed Anson, Calcomp Display Products Division, Hudson NH 03051 (603) 885-8712, anson@elrond.CalComp.COM