[comp.sys.mac.hypercard] Beginner's

raphi@shemesh.Eng.Sun.COM (Raphael Rom) (09/18/90)

Just a short while ago I started scripting on my Mac.  Had a nice stack
and then edited the script of the stack (executed upon entering) and
limited the user level to browsing.  Now it won't let me do anything
again, in particular not script changes.

Is there a way to salvage the data I have in the stack?

gort@cup.portal.com (george d harrington) (09/19/90)

raphi@shemesh.Eng.Sun.COM writes about a stack that he accidently
locked himself out of. If you can open the msg box, you can type
"set userlevel to 5" to enable you to edit the script. But if the
script really has you locked out, try this:
open your home stack and create a new button with a script like
 
 on mouseUp
   set the lockmessages to true
   go stack whatsit
   edit the script of stack whatsit
 end mouseUp

the lockmessages is set to true on idle, that is, when your script
ends.                       ^^^ uhh, should be set to false on idle.
setting lockmessages to true prevents openstack, opencard, closestack,
and closecard from functioning. This is useful for regaining control
of a stack that has you locked out.

Also, you could just put a idle handler in your stack that sets the
userlevel to 5, but not all stacks will function correctly at 5,
and the stack in question might trap the idle handler. But it works
sometimes
 
 Hope this helps.
              gort@cup.portal.com