Disabling script steps
Note This feature is available when the Use advanced tools general preference is selected. See Using advanced tools.
You can disable and enable script steps to test portions of a script. When you run a script, disabled script steps are skipped.
To disable script steps:
- Choose Scripts menu > Script Workspace.
- Double-click the script that contains the script steps to disable.
- In the script, select the script steps, then choose Edit menu > Disable.
- To edit the color coding of disabled script steps, in the Script Workspace, choose View menu > Preferences and click the Syntax Coloring tab (Windows), or choose View menu > Script Workspace Preferences and click the Syntax Coloring tab (macOS).