[comp.sys.mac.hypercard] doMenu foo with CommandKey

per@philabs.Philips.Com (Paul E. Rutter) (04/01/88)

Here is the problem:

  I have several stacks in an application.  I can "protect stack" them all
  manually to get the effects I want (which is to have a "user mode" and a
  "superuser" mode).  What I really want is to only have to unprotect the
  main stack, then have scripts that do things to the secondary stacks (like
  add cards).  What I would like is to be able write a script that goes to
  the secondary stack, says 'doMenu "Protect Stack..." with CommandKey', type
  the password, and have the script proceed.  BUT, there is no 'doMenu ...
  with ...' form.  ('Ask password' tricks seem pointless because one can not
  set the userLevel up (of course)).

  Suggestions?


Also, I have a script that cleans up and then saves a stack (with 'doMenu
"Save ..').  Is there a way to override the question "do you want to
overwrite Copy of foo?"

thanx.