The Script Editor provides several ways to check your script to make sure it works properly: Check the syntax of the script to make sure you have spelled terms correctly. Use the Result window to see the result of operations. Check the Event Log to see which statements have been executed.
However, the only way to determine that a script really works is to run it.
Checking the syntax Using the Result window Checking the Event Log