Script Editor Icon

Making sure a script works

Script Editor provides a number of features to help you check that your script works properly.

Here are ways to check your script:

Click the Compile button. This compiles the script and checks the script for errors. If Script Editor finds an error, it highlights that part of the script, and a dialog explains the problem. If there are no errors, Script Editor finishes the compile and formats the script.

Click Run. This button compiles your script and checks it for errors. If there are no problems, it runs the script.

After you run the script in Script Editor, results are displayed in the Result pane of the script window. Results are produced when values are stored, calculations are made, or results are returned.

For more details about how your script is working, click the Event Log in the script window, and then run your script. The Event Log pane shows each statement the script executes and the results.

Related Topics

debugging scripts