One of the more powerful features in Paint Shop Pro is Scripting. Paint Shop Pro has a full-featured scripting engine based on the Python programming language (see http://www.python.org/ for more information on this language). Although you can write your own scripts using Python syntax, Paint Shop Pro’s built-in script recorder can do this work for you, allowing you to script almost any action within the application.
If, however, you choose to write a script in the Python language, note that Python uses indentation to determine scoping, thus you must be very careful about mixing spaces and tabs. We recommend that you use a Python-aware editor such as PythonWin or Idle if you choose to write your own scripts.
For more information about scripting, see:
About the Script Toolbar Buttons
Editing Scripts Using Paint Shop Pro