• | You cannot script user interface customizations, CMYK profile creation or editing, operations inside the Manage workspace, operations inside of Print Layout, or gradient creation. |
• | You cannot script the floating, docking, or arranging of toolbars, palettes, and windows. |
• | Only plug-ins that support scripting are scriptable. |
• | Outside of the above restrictions, most actions you perform in Corel PaintShop Pro are scriptable. |
Restricted and trusted scripts
• | Scripts-Restricted — contains scripts that do not reside in a trusted folder |
• | Scripts-Trusted — contains any trusted scripts |
These folders reside inside the following paths:
• | 32-bit — X:\Program Files (x86)\Corel\Corel PaintShop Pro X6\Languages\[language code] (where "x" indicates the drive on which you installed Corel PaintShop Pro) |
• | 64-bit — X:\Program Files\Corel\Corel PaintShop Pro X6 (64-bit)\Languages\[language code] |
• | In your user folder, ...Documents\Corel PaintShop Pro\16.0 |
When the application searches for scripts, restricted scripts are searched before trusted scripts.
Here are some considerations about restricted scripts:
• | If a script is run from an unconfigured path, it is treated as restricted. |
• | If a path appears in both the restricted and trusted lists, it is treated as restricted. |
• | Presets, Material palette swatches, and Print Layout templates (which are essentially scripts) are treated as restricted. |
Commands that cannot be used in a restricted script
File Save
|
|
File Save As
|
|
File Save Copy As
|
|
File Export GIF Optimizer
|
|
File Export PNG Optimizer
|
|
File Export JPEG Optimizer
|
|
File Preferences File Locations
|
|
File Close
|
|
File Close All
|
|
File Send
|
|
File Batch Process
|
|
File Batch Rename
|
|
File Export Image Mapper
|
|
File Export Image Slicer
|
|
File Exit
|
To record and save a script |
1 | Click the Start Script Recording button . |
2 | Perform the actions that comprise the script. |
3 | Click the Save Script Recording button . |
The Save As dialog box appears. |
4 | Choose the folder where you want to store the script. |
5 | Type a name for the script, and click Save. |
In the Save As dialog box, mark the Remove Undone Commands check box.
|
|
In the Save As dialog box, mark the Save Materials check box. If this check box is cleared, the current material is used with the given tool when the script is run, rather than the material that was used when the script was recorded. This option only applies to recorded actions with a tool, not with a material setting in a dialog box.
|
|
In the Save As dialog box, mark the Save Dialog Positions check box. You may not want to use this option if you intend to share the script with others. Enabling this check box not only records the dialog position, but whether the Before/After preview area is displayed, whether the dialog is maximized, and whether the Preview on Image check box is marked. You can leave these preferences up to other users of your script.
|
|
In the Save As dialog box, click Description, and type information in the Author, Copyright, and Description boxes. The information you enter is displayed when you edit the script.
|