Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!cs.utexas.edu!oakhill!tomj From: tomj@oakhill.UUCP (Tom Johnson) Newsgroups: comp.sys.mac.hypercard Subject: Setting userLevel at openStack time Summary: It don't seem to want to work! Keywords: openStack HyperCard userLevel Message-ID: <3026@oakhill.UUCP> Date: 28 Feb 90 19:10:22 GMT Reply-To: tomj@oakhill.UUCP (Tom Johnson) Distribution: usa Organization: Motorola Inc., Austin, Texas Lines: 29 I'm haveing a problem that I can't seem to resolve, soooo... I thought I might just try the net. Here's the scenario: I have a stack I developed for internal use. It works great, does everything it is supposed to do, and is loved by all who use it. (stroke, stroke, stroke :>)) I don't want the grungy users munging around in my pristine scripts, so I decide to set the userLevel to 2 at openStack time. I also add a nifty password capability so I can get back to userLevel 5 whenever I want. I also trap all "set" messages, and if the password check has not been met, and the keyword "userLevel" is in the "set" message, just beep, otherwise pass the set on. Everything works great EXCEPT the request to set the userLevel to 2 on openStack! I've tried everything I can think of: 1) use a "send 'set UserLevel to 2' to Hypercard" 2) issue a "set userLevel to 2" after tricking the password checker 3) every possible variation on the above 2, and in every possible position of the openStack handler. The "set userLevel to 2" works fine, as long as it is NOT in the openStack handler. What's going on? Particulars: Hypercard 1.2.2, MacIIcx 8/80, bunches of inits (although I don't believe these are causing any problems). Any answers out there? Tom Johnson (tomj@oakhill.UUCP) Standard disclaimers apply.