Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwvax!dogie.macc.wisc.edu!vms.macc.wisc.edu From: keir@vms.macc.wisc.edu (Rick Keir, MACC) Newsgroups: comp.sys.mac.programmer Subject: Re: Locking the "chooser" user name? Message-ID: <1889@dogie.macc.wisc.edu> Date: 16 Jun 89 22:01:49 GMT Sender: news@dogie.macc.wisc.edu Organization: University of Wisconsin Academic Computing Center Lines: 31 In article <835@unocss.UUCP>, dent@unocss.UUCP (Dave Caplinger) writes... >Can anyone suggest a way to set the "chooser" username once and then prevent >it from being changed in the future? I'm building a public user room Apple- >Share network (file/print served), but I want to be able to tell which Macs >(by physical location, like "Mac 3" etc) are 1) Logged into the server (all >of the public macs will be using the guest account), and/or 2) connected to >AppleTalk (whether they yanked the plug or not :-). > The username is stored as a string in the "System" file; I don't remember where. The chosen printer is stored in "STR " -8192. I suppose you could set these, then delete the chooser; however I strongly recommend not doing this. It is just too useful for users to look in the chooser and see if the printer is responding, and too many things can reset these values. You have to assume in a public setting that users will add their own DAs and screw up your files constantly. Therefore, the cleanest solution I know is to make yourself a modified chooser, install it, and hope it doesn't get replaced too often by a user with his/her own Font/DA mover. To modify: get ResEdit, and a copy of the chooser in the Font/DA mover "suitcase" file. Open this file with ResEdit, and edit the dialog box which contains the template for the chooser's main dialog. On my system (6.0.2) this is "DITL -16000" but your mileage may vary; it should look familiar when you see it. Expand the dialog box & put the edit text field for username out of the original rectangle; then close back to normal dimensions. Voila: all the items are present bu the user cannot edit the field. (My thanks to Chuck Hutchins, the Apple Education Coordinator here, for this idea).