HyperCard: Sending HyperTalk in AppleScript (12/93)

How do I embed HyperTalk code in a script that is in the AppleScript
environment?

After setting the language environment to AppleScript:

* Use the command "do script" and enclose the HyperTalk code in quotes.
For example:

do script "send mouseUp to card button 5"

* Or put AppleScript code in a field, then use something like this:

do card field scriptText as AppleScript

If the field scriptText has AppleScript code in it, the HyperTalk command
will execute it as AppleScript.

Published Date: Feb 19, 2012