Scripts can be edited via the Paint Shop Pro user interface, or by editing the script’s Python code in a text editor application. For more information, see Editing Scripts Via the Text Editor.
To edit the currently selected script:
Click the Edit Selected Script button . The Script Editor dialog will appear, listing the actions that comprise the script, as well as some basic information.
Notes:
If the script you wish to edit is not in the Select Script drop-down, choose File > Script > Edit to display the Open dialog. Navigate to where the script resides. When you open the script, its information will appear in the Script Editor dialog.
If the Script Editor cannot open the script (e.g. the format is unreadable, or perhaps the script was created or edited manually in a text editor), the script will open in the default text editor application set in the File Locations dialog. Refer to the section “Editing Via a Text Editor” below.
In the Scripts Commands section, you can do the following:
Mark the check box on the left to use that portion of the script.
Use the Mode drop-down to set a mode for the script’s actions. Mode options are Default, Silent, or Interactive. Choose Silent to skip all dialogs — the command in the script is executed without providing the user dialog interaction. Choose Interactive to allow for user interaction with dialogs and other settings. Choose Default to execute the command based on what the execution environment has set for its preference.
To display and/or modify a command’s settings, select the command and then click Edit, or double-click the command. Be aware that command names show in italics with the words “NOT editable” cannot be selected for editing.
Note: There are a small number of commands that can only be edited when an image is open in the workspace.
To remove commands from the script, select the command and click Delete. To select multiple commands, use the standard Shift-click or Ctrl-click methods.
To view and/or edit the Python code associated with the script, click the Text Editor button. The editor assigned via the File > Preferences > File Locations dialog will open the script. Until you specify another application, the default editor is Notepad.
To save your edits, click Save, and then click Close.
About the Script Toolbar Buttons
Using the File > Script Menu Items
Editing Scripts Via the Text Editor