Running Unsaved Scripts
There may be development environments where you wish to run modified scripts without saving them first. By default, you are prompted with choices when attempting to run a script with unsaved changes. In addition, Workbench has a preference where you can set the default behavior when running scripts with unsaved changes.
NOTE: By default, the The behavior when running a modified script Workbench preference is set to Always Ask (see the section that follows for instructions to change this preference).
When you run any Workbench script with unsaved changes, the Script has unsaved changes dialog box opens.
Make one of the following choices:
- Save Script—Saves and then runs the script.
- Use Temp Script—Creates a temporary script without saving and runs that temporary script.
- NOTE: If the script produces a cBase and you used the temporary script option, the metadata inside the cBase will point to a randomized file name for the source script. That is, Spectre cBases contain within them the output log of the build command that produced them.
- Cancel—Cancels the run and returns you to the script.
If you click the Remember my choice check box, your selection sets the associated Workbench preference. Click Tools > Preferences > Behavior > Save to see the preference change in the Workbench Preferences dialog box.
- Save Script—Sets the preference to Always Save.
- Use Temp Script—Sets the preference to Always Use a Temp Script.
- Cancel—Leaves the preference set to the default Always Ask.
You can always return to the Workbench Preferences dialog box to change this preference.
-
Click Tools > Preferences.
The Preferences dialog box opens.
- Click Behavior in the left panel.
-
In the right panel, under the Save section, make a selection for The behavior when running a modified script
- Always Ask—Always presents the Script has unsaved changes dialog box.
- Always Save—Always saves the script before running.
-
Always Use a Temp Script—Always uses a temporary script.
NOTE: If the script produces a cBase and you used the temporary script option, the metadata inside the cBase will point to a randomized file name for the source script. Spectre cBases contain within them the output log of the build command that produced them.
- Click OK to dismiss the Preferences dialog box.