home *** CD-ROM | disk | FTP | other *** search
- Organization: Doctoral student, English, Carnegie Mellon, Pittsburgh, PA
- Path: sparky!uunet!wupost!udel!rochester!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!ch2i+
- Newsgroups: comp.sys.mac.hypercard
- Message-ID: <0eP=LJm00Uh_Q7cKYC@andrew.cmu.edu>
- Date: Tue, 21 Jul 1992 21:11:49 -0400
- From: "Charles A. Hill" <ch2i+@andrew.cmu.edu>
- Subject: Re: copying buttons
- In-Reply-To: <YeOjK9600Uh_43iFlZ@andrew.cmu.edu>
- References: <YeOjK9600Uh_43iFlZ@andrew.cmu.edu>
- Lines: 33
-
- >I'm trying to copy all of the card buttons from one card into another
- >card. I created a new button with a script that looks like this:
- >
- >on mouseup
- > choose button tool
- > repeat with x = 1 to number of cd btns
- > select cd btn x
- > domenu "copy button"
- > go cd foo
- > domenu "paste button"
- > go back
- > end repeat
- >end mouseup
- >
- >The script chugs along for a while and copies about 10 or 15 buttons,
- >but then it stops and says, "menu item "copy button" not found" (or
- >something like that).
-
- In case anyone is interested, I figured out what the problem was. Some
- of the buttons were hidden, and therefore couldn't be selected. HC
- didn't complain when I said to select them, only when I said to domenu
- "copy button." Since no button had been selected, the "copy button"
- menu item was not activated.
-
- I stuck the line, "show cd btn x" before "select cd btn x", and it worked fine.
-
- Duh.
-
- Thanks for the replies, and sorry for wasting bandwidth.
-
- Charlie Hill
- ch2i@andrew.cmu.edu
-
-