Editing Scripts Using Paint Shop Pro

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:

  1. 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:

  1. In the Scripts Commands section, you can do the following:

  2. Mark the check box on the left to use that portion of the script.

  3. 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 exe­cution environment has set for its preference.

  4. 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.

  1. 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.

  2. To save your edits, click Save, and then click Close.

 

Related Topics

Trouble Shooting a Script

Displaying the Script Toolbar

About the Script Toolbar Buttons

Using the File > Script Menu Items

Recording and Saving a Script

Running a Saved Script

Stopping or Undoing a Script

Editing Scripts Via the Text Editor