[comp.sys.mac.hypercard] Useful piece of script

ako@hutcs.hut.FI (Arto Kojo) (11/15/89)

The following trick may not be known by everyone. Add these lines to the
beginning of your scripts, and your script editing will become much more
comfortable. Usage is obvious to those who know HyperTalk.

on mouseUp
  if the shiftKey is down then
    edit script of me
    exit mouseUp
  end if

  <your script>
end mouseUp

I know there must be more tricks like this aroud the world. Most propably
some of them has already been introduced here in comp.sys.mac.hypercard,
but if they're good, it's no sin to bring them over here again.



--
:::: Arto Kojo :::::::::::::::::::::: Helsinki University of Technology ::::
::   TKK/TKO-lab/Y227                 ako@hutcs.hut.fi                    ::
::   02150 ESPOO FINLAND              s29808u@puukko.hut.fi               ::
:::: tel: +358-0-4513236 :::::::::::: akojo@otax.tky.hut.fi ::::::::::::::::

JK3@PSUVM.BITNET (11/16/89)

holding down the command-option keys outlines all buttons, and a click
takes you to the script editor.  No need to add to the scripts.

ako@hutcs.hut.FI (Arto Kojo) (11/16/89)

>   on mouseUp
>     if the shiftKey is down then
>       edit script of me
>       exit mouseUp
>     end if
>
>     <your script>
>   end mouseUp


OK, folks. After that article I received multiple postings telling me
that the scripts of the buttons can be examined using Option-Command-Click
and the fields using Option-Command-Shift-Click. Too bad Danny Goodmans
"complete" HyperCard Handbook never mentioned about this.

*PLOP* goes my spirit of innovation. :-)

On the other hand, without that posting I may never have heard about Option-
Command-Clicking. Thanks for that!



--
:::: Arto Kojo :::::::::::::::::::::: Helsinki University of Technology ::::
::   TKK/TKO-lab/Y227                 ako@hutcs.hut.fi                    ::
::   02150 ESPOO FINLAND              s29808u@puukko.hut.fi               ::
:::: tel: +358-0-4513236 :::::::::::: akojo@otax.tky.hut.fi ::::::::::::::::

tom@wcc.oz (Tom Evans) (11/21/89)

In article <AKO.89Nov16104555@hutcs.hut.FI>, ako@hutcs.hut.FI (Arto Kojo) writes:
> OK, folks. After that article I received multiple postings telling me...

> Too bad Danny Goodmans  "complete" HyperCard....

I found about it in the HyperCard Version 1.2.2 Release Notes Stack.
There's a lot of very useful info in there, especially if you want to
make your stack incompatible with anything prior to 1.2.2 :-).

1.2.2 came out a long time after Danny's book.
			    ---------
Tom Evans  tom@wcc.oz.au	|
Webster Computer Corp P/L	| "The concept of my
1270 Ferntree Gully Rd		|  existence is an
Scoresby VIC 3179    Australia	|  approximation"
Australia			|
61-3-764-1100  FAX ...764-1179	|      D. Conway