Problem A - JascApp vs. PSPApp
A common problem with PSP scripts is version compliance. Scripts written in PSP 8 and PSP 9 use a module called JascApp. Scripts after PSP X use a module called PSPApp. When a PSP X or higher script is placed in the Scripts-Restricted folder and used in PSP 8 or 9, it will produce an error "This script has attempted an operation that is not permitted in a restricted script. This script may be run by moving it to a trusted directory."


Problem B - Case Sensitivity
Paint Shop Pro scripts use the Python interpreter. This means that Paint Shop Pro scripts are case-sensitive. You will also get Problem A if you use some variation of Jasc like jasc or JASC or even jASC.

Problem C - Editor Problems
Sometimes, in foreign versions of Paint Shop Pro (like Dutch, Swedish and German), after the script has been editted in Notepad, it will not run. In some languages, Notepad will leave strange characters in the script file that will prevent it from working in PSP. The solution to this problem is to change the default Script Editor in Paint Shop Pro to WordPad.
The Script Editor is located in File > Preferences > File Locations. In the dialog on the left-hand side, find Python Source Editor and click on it.

Once the default editor has been changed to WordPad, the user needs to remember to save the script files as text.

No comments:
Post a Comment