Path: utzoo!attcan!uunet!aplcen!haven!umd5!zben From: zben@umd5.umd.edu (Ben Cranston) Newsgroups: comp.sys.mac.programmer Subject: Re: FKEY to change LaserWriters?? Summary: Seems easy enough to do Message-ID: <7263@umd5.umd.edu> Date: 7 Sep 90 17:57:16 GMT References: <1327@radius.com> Reply-To: zben@umd5.umd.edu (Ben Cranston) Organization: University of Maryland, College Park Lines: 30 In article <1327@radius.com> lemke@radius.com writes: > Here's an interesting idea for a little FKEY: > How about one that would go and change whatever resource needs to be changed > to switch to a different LaserWriter (possibly in a different zone) and also > optionally turn background printing on or off?? Seems easy enough to do. System file STR resource -8192 contains the current type of printing (name of PMRF in system folder), if this is not LaserWriter then beep and exit. Open the named file (in the system folder) as a resource file. PAPA resource -8192 contains the NBP name of the currently selected laserwriter. This resource consists of three strings corresponding to the name, type (LaserWriter), and zone of the selected printer, with the shipped default being (LaserWriter, LaserWriter, *) followed by a four-byte Apple Internet address of where the printer was found (two bytes of network, one byte of node, one byte of socket number). The background printing bit seems to be the very first bit (0x80 in the very first byte) of the PREC 127 resource in the same file. Zero means background ON and one means background OFF. So, if caps key is on suck in these resources and if caps key is not on then blast them out. One day of work tops. Then two weeks getting the error alerts right and making a first class Macintosh user interface... -- Ben Cranston A determined iconoclast, it would be better to assume the opinion expressed above is the diametric OPPOSITE to that of the Warm and Fuzzy Network Group of Egregious State University...