Writing and Executing a Script
Procedure
Result
The script runs if there are no syntax errors. Any errors appear in a dialog box to help you debug them.
Note
There are several free utility text editors that are context sensitive. This means that they can color and highlight parts of your code to make it more readable. If you use one of these for writing and editing your scripts, choose Javascript as the editing language and/or save the file with a .js (Javascript) extension.