home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / hypercar / 2841 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.5 KB  |  45 lines

  1. Organization: Doctoral student, English, Carnegie Mellon, Pittsburgh, PA
  2. Path: sparky!uunet!wupost!udel!rochester!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!ch2i+
  3. Newsgroups: comp.sys.mac.hypercard
  4. Message-ID: <0eP=LJm00Uh_Q7cKYC@andrew.cmu.edu>
  5. Date: Tue, 21 Jul 1992 21:11:49 -0400 
  6. From: "Charles A. Hill" <ch2i+@andrew.cmu.edu>
  7. Subject: Re: copying buttons
  8. In-Reply-To: <YeOjK9600Uh_43iFlZ@andrew.cmu.edu>
  9. References: <YeOjK9600Uh_43iFlZ@andrew.cmu.edu>
  10. Lines: 33
  11.  
  12. >I'm trying to copy all of the card buttons from one card into another
  13. >card.  I created a new button with a script that looks like this:
  14. >on mouseup
  15. >   choose button tool
  16. >   repeat with x = 1 to number of cd btns
  17. >       select cd btn x
  18. >       domenu "copy button"
  19. >       go cd foo
  20. >       domenu "paste button"
  21. >       go back
  22. >   end repeat
  23. >end mouseup
  24. >The script chugs along for a while and copies about 10 or 15 buttons,
  25. >but then it stops and says, "menu item "copy button" not found" (or
  26. >something like that).
  27.  
  28. In case anyone is interested, I figured out what the problem was.  Some
  29. of the buttons were hidden, and therefore couldn't be selected.  HC
  30. didn't complain when I said to select them, only when I said to domenu
  31. "copy button."  Since no button had been selected, the "copy button"
  32. menu item was not activated.
  33.  
  34. I stuck the line, "show cd btn x" before "select cd btn x", and it worked fine.
  35.  
  36. Duh.
  37.  
  38. Thanks for the replies, and sorry for wasting bandwidth.
  39.  
  40. Charlie Hill
  41. ch2i@andrew.cmu.edu
  42.  
  43.