Quick links to procedures on this page:

Working with scripts

Scripts are short programs that use the Corel SCRIPT programming language to automate simple tasks. For example, if you have a series of images that are underexposed, you can record the corrective adjustments as you apply them to the first photograph. You can then play the recording on all the remaining photographs to correct them simultaneously.

You can use the Recorder docker to create recordings, which you can save as scripts for future use. You can also use the Recorder docker to open, edit, and play recordings and scripts.

Creating recordings and scripts

You can record a sequence of most keyboard, toolbar, toolbox, menu, and mouse operations. As you record, the operations are translated into command statements that appear chronologically in a command list. Each command statement is one word that is based on the name of a menu plus the name of a command found in that menu.

Some operations are converted to parameters that are embedded within a command. Parameters are recorded, but they are not displayed in the command list. For example, if you choose a paint color and apply a brushstroke to the image, the color selection is not displayed in the recorder’s command list; instead, it is recorded as a parameter of the paint tool command.

The following operations and commands cannot be recorded in Corel PHOTO-PAINT:

To make a recording accessible in a future Corel PHOTO-PAINT session, you must save it as a script. The scripts that you create can be loaded and played at any time.

You can also save a list of Undo actions as a script. For example, if you did not record the actions for an effect that you want to reproduce, you can save those operations as a script by using the Undo list. A script created from an Undo list includes all the operations you perform on an image; therefore, you may need to edit the script to isolate the commands you want.

Editing recordings and scripts

You can edit a recording or script by inserting new commands, recording over existing commands, and deleting the commands that you no longer want to include.

Playing recordings and scripts

When you play a recording or script, the recorded commands are applied to the active image. You can play a recording only in the current Corel PHOTO-PAINT session. If you want to use the recording in other work sessions, you must save it as a script. Before playing a recording or script, ensure that the active image contains the components necessary for successful execution of the recorded commands. For example, if your script has commands that are specific to objects, it cannot be applied successfully to an image that has no objects.

You can apply a single command from a recording or script to an image. This feature is useful when you want to evaluate the result of a particular command before applying the rest of the commands in the recording or script to the image.

You can temporarily exclude some commands from a sequence before you play a recording or script. You can enable disabled commands without having to re-create the recording or script.

You can apply one or more scripts to one or more images simultaneously, which is known as batch processing. This feature lets you perform global adjustments on several images, without having to open each image and play each script individually. After batch processing, the images can be saved to their original file format or to a different file format.

To display the Recorder docker Back to Top
To create a recording or script Back to Top

*

If a document-saving command is the first action in a recording, you can restore the original image by returning to the first command in the recording.

To save the Undo list as a script Back to Top
To open a script Back to Top
To insert commands into a recording or script Back to Top
To replace commands in a recording or script Back to Top
To delete commands from a recording or script Back to Top

*

If you delete commands from a script, you must save the script before closing it to save the changes.

To play a recording or script Back to Top

 

Click a command, and click the Enable/Disable selected command(s) button .
Click the Rewind button .
Click the Fast forward button .
To play scripts on multiple images Back to Top

*

Choosing Don’t save from the On completion list box lets you assess the results before overwriting the original image.

 

Not all suite components documented in this Help are available in our Trial, Academic, and OEM versions. Unavailable components may include Corel applications, product features, third-party utilities, and extra content files.


Feedback
Was this page helpful? Send feedback. (Internet connection required.)

Copyright 2017 Corel Corporation. All rights reserved.