5.1.9:Summary

要約

• Each object has a script, which can be empty or can contain one or more Transcript handlers. You change a script using the script editor, or by setting the object's
script property.

・各オブジェクトにはスクリプトが書き込まれています。そのスクリプトは空の場合もあり、トランスクリプト・ハンドラが一つだけの場合も複数の場合もあります。スクリプト・エディタを使うとか、オブジェクトのscriptプロパティを設定することで、スクリプトを変更することができます。

• A script can contain four kinds of handlers: message handlers, function handlers, setProp handlers, and getProp handlers.

・スクリプトは次の四つの形式のハンドラを含むことができます:メッセージ・ハンドラ、ファンクション・ハンドラ、setPropハンドラ、getPropハンドラ

• A comment is a part of the script that is not executed. Comments start with -- or #.

・コメントは、実行されないスクリプトの一部です。コメントは、ーーか#で始まります。

• If a script contains a compile error, none of its handlers can be used until the error is fixed.

・スクリプトにコンパイル・エラーが含まれていると、エラーが修正されるまでそのハンドラ全体が実行されません。