englandr@phoenix.Princeton.EDU (Scott Englander) (10/15/88)
I'd like to have the userlevel of my stack automatically set to 2 when it starts, and then reset to the existing level (or that originally in the home stack) when a closestack message is sent. I tried put userlevel into savelevel set userlevel to 2 in the openstack handler, but an openstack message is not sent if the stack is launched from the Finder. So i tried an "on Startup" handler which sent an openstack message; the openstack handler then went to the home stack and tried to change the userlevel. It somehow got into an infinite loop jumping back and forth between the home stack and my stack -- i suppose i should post the code here for you to figure that one out. But i'm hoping that someone has tried to do this before. I don't want to make my stack secure (i want scripters to be able to see the scripts by typing "set userlevel to 5" in the message box). I just want to idiot-proof it somewhat to keep people from hurting themselves. -- - Scott