You can run (and test) some scripts before you connect them to parts. The script displayMessage in the example is one that you can run independently of the visual part.
You can run the script from the Script Editor or the System Transcript window.
Running the script from the Script Editor
To run the script from the Script Editor:
| messageBox | messageBox := (CwMessagePrompter new) title: 'Hey!'; messageString: 'Please do not press that button again.'. messageBox prompt.
Running the script from the System Transcript
To run the code from the System Transcript:
<part name> new displayMessage
For <part name>, supply the name of the part (or class) that contains displayMessage.
The code runs and displays a message box, which you can close by selecting OK or Cancel.