Automating tasks : Editing scripts in Corel PaintShop Pro
 
Editing scripts in Corel PaintShop Pro
You can edit scripts using the Corel PaintShop Pro user interface, or by editing the script’s Python code in a text editor application. For more information about editing scripts, see Editing scripts using a text-editing application.
To edit the currently selected script
Edit tab 
1 Click the Edit Selected Script button to display the Script Editor dialog box.
The commands and actions that comprise the script appear in the Script Commands group box.
2 Make changes to the script.
Specific editing actions can be found in the table below.
Note: Command names shown in italics with the words “NOT editable” cannot be selected for editing.
3 Click Save.
4 Click Close.
 
You can also
 
Disable a script action or command
Unmark the check box beside the action or command.
Remove a script action or command
Click the action or command, and click Delete.
View or edit the Python code associated with the script
Click Text Editor. The text editor assigned in the File Locations dialog box opens the script. Unless you specify another application, the default editor is Notepad.
If the script format is unreadable, or if the script was created and edited manually in a text editor, the Corel PaintShop Pro Script Editor cannot open the script. Instead, the script opens in the default text editor that is specified in the File Locations dialog box. For more information, see Editing scripts using a text-editing application.
If the script you want to edit is not in the Select Script drop-list, choose File Script Edit and choose the folder where the script is saved. When you open the script, its information appears in the Script Editor dialog box.
To set a playback mode for a script action or command
Edit tab 
1 Click the Edit Selected Script button to display the Script Editor dialog box.
2 In the Scripts Commands group box, choose one of the following options from the Mode drop-list:
Default — uses whatever mode was specified in the Run Script command.
Silent — skips all dialog boxes associated with that command or action when you run the script. Use this mode when you feel it’s best to avoid interacting with a dialog in the script.
Interactive — allows for user interaction with dialog boxes and other settings