Path: utzoo!attcan!uunet!mcvax!ukc!icdoc!citycs!!luke From: luke@ (Luke Whitaker) Newsgroups: comp.sys.mac.hypercard Subject: How do I reliably set the userLevel of a stack ? Message-ID: <113@citycs.UUCP> Date: 31 Jul 89 14:43:49 GMT Sender: luke@citycs.UUCP Reply-To: luke@ (Luke Whitaker) Organization: City University, London Lines: 25 I have a problem that seems very trivial but I can't figure out. I want to set userLevel to 1 when my stack starts up. Sounds simple. I tried putting a "set userLevel" command in the "openStack" handler, and that's fine if my stack is started from another stack. However, if it is double clicked from the finder, then my openStack routine gets called, and THEN startup gets called, which goes all the way to the home stack and resets the userLevel to whatever is in the user preferences card. I could handle startup myself, but that doesn't seem very friendly if the user has added some extras, possibly including xcmds to his/her home stack. Am I looking at this the right way or maybe I shouldn't worry about the users own specials as far as my stack is concerned --- after all, I wan't to override the userLevel. Incidently, I can't protect the stack at level 1 because I need to manipulate the userLevel within the script myself. Sorry if this has been covered before. Mail me and I will summarise. Luke Whitaker, Computer Science, City University, London, EC1V OHB, England. JANET: l.whitaker@uk.ac.city.cs BITNET: l.whitaker%uk.ac.city.cs@ac.uk ARPA: l.whitaker@cs.city.ac.uk (or l.whitaker%uk.ac.city.cs@nss.cs.ucl.ac.uk) Uucp: ...!mcvax!ukc!citycs!luke (or luke@citycs.uucp)