Testing a Script

You can test a script using the Run Script Button Run command, which is available in the Script Editor toolbar and menu. The run command will execute a single function in one of your scripts. The function it runs is called the target.

To select which function in which script the Run command should execute, you must use the Set Target Function Button Set Target command, which will prompt you to select a script and a function. Once you've done this, every time you use the Run Script Button Run command, it will execute the function you set as your target. If you need to test a different function or script later, you will have to use the Set Target Function Button Set Target command again to change the target script and function. This allows you to work on and repeatedly test one function at a time when working on a script.

NOTES
  • If you use the Run Script Button Run command without setting a target first, you will be prompted to set a target. The selected target will persist until you use the Set Target Function Button Set Target command to change it.
  • The target script and function is also used by the Debug command.