Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!purdue!decwrl!sun!pitstop!sundc!seismo!uunet!mcvax!ukc!mupsy!liv-cs!phil From: phil@mva.cs.liv.ac.uk Newsgroups: comp.sys.mac.programmer Subject: Re: Chooser and printers Message-ID: <3579@mva.cs.liv.ac.uk> Date: 18 Oct 88 12:28:45 GMT References: <553@cf-cm.UUCP> Lines: 20 Organisation: Computer Science CSMVAX, Liverpool University In article <553@cf-cm.UUCP>, ralph@computing-maths.cardiff.ac.uk 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? > Well, the System file contains a STR resource numbered -8192 that contains the name of the currently chosen printer. Since System is open all the time from your application you should just be able to use GetResource to get a handle to the string and then double dereference it to get the string itself. (I think) Phil Jimmieson, *************************************************** Computer Science Dept., * ** Note New Address & UserName ** * Liverpool University, * JANET : PHIL@UK.AC.LIV.CS.MVA * Merseyside, England, * ARPA : PHIL%mva.cs.liv.ac.uk@cunyvm.cuny.edu * L69 3BX * * * old address SQPHIL@UK.AC.LIV.CSVAX may work * (UK) 051-794-3689 *************************************************** > Dr Ralph Martin > Department of Computing Mathematics