How to Find Name of Currently Chosen Macintosh Printer Driver (32970)






This article was previously published under Q32970

SUMMARY

The following Macintosh QuickBASIC program shows how to find the name of the current printer driver:
   printer$ = ""
   WHILE INKEY$ = "
       LoadString PEEKW (&HA58),-8192,printer$
       IF printer$<>last$ THEN CLS: PRINT printer$; :last$=printer$
   WEND
				
The memory location &HA58 contains the reference number of the Macintosh System file. The string id -8192 contains the name of the currently chosen printer driver. However, because these names may be changed freely with the Chooser in the Apple menu of the Finder, this may not be very useful.

Modification Type: Minor Last Reviewed: 1/8/2003
Keywords: KB32970