Quick links to procedures on this page:
• |
• |
• |
• |
• |
• |
• |
• |
• |
• |
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.
You can also open and play scripts through the Scripts docker.
|
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:
• |
toolbar, keyboard, and menu customization
|
• |
grid, ruler, and guideline customization
|
• |
Window and Help menu commands
|
• |
image calculations and image stitching
|
• |
viewing operations, such as zooming
|
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.
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.
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 |
• |
Click Window |
| To display the Scripts docker |
1. |
Click Tools |
2. |
In the Workspace, Customization list of categories, click Commands.
|
3. |
Choose Window from the list box.
|
4. |
Drag the Scripts button |
5. |
Click the Scripts button on the command bar.
|
| To create a recording or script |
1. |
Click the New button |
2. |
Click the Record button |
3. |
Perform the actions that you want to record.
|
4. |
Click the Stop button |
The recording is now complete and can be played in the current session. |
To save the recording as a script for future use, click the Save button |
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 |
1. |
Click Windows |
2. |
Click the Save script file as button |
3. |
In the Save recording dialog box, choose the drive and folder where you want to
save the script.
|
4. |
Type a filename in the File name box.
|
| To open a script |
1. |
Click the Open button |
2. |
Choose the drive and folder where the script is stored.
|
3. |
Double-click the script filename.
|
You can also open a script from the Scripts docker.
|
| To insert commands into a recording or script |
1. |
Create a recording, or open a script in the Recorder docker.
|
2. |
Click the Insert new command button |
3. |
Double-click the command that you want to precede the commands you insert.
|
The position indicator appears beside the selected command. |
4. |
Click the Record button |
5. |
Perform the actions that you want to insert.
|
6. |
Click the Stop button |
| To replace commands in a recording or script |
1. |
Create a recording, or open a script.
|
2. |
In the Recorder docker, double-click the first command in the sequence of
commands that you want to replace.
|
The position indicator appears beside the selected command. |
3. |
Click the Record button |
4. |
Perform the new operations.
|
5. |
Click the Stop button |
| To delete commands from a recording or script |
1. |
Create a recording, or open a script.
|
2. |
In the Recorder docker, hold down Ctrl, and click the commands.
|
3. |
Click the Delete selected command(s) button |
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 |
1. |
Create a recording, or open a script.
|
2. |
Click the Play button |
You can also play a script from the Scripts docker.
|
| To play scripts on multiple images |
1. |
Click File |
2. |
Click Add file.
|
3. |
In the Load images for batch playback dialog box, choose the drive and folder
where the images are stored.
|
4. |
Holding down Ctrl, click the images that you want to edit, and click Open.
|
5. |
In the Batch process dialog box, click Add script.
|
6. |
In the Load script dialog box, choose the drive and folder where the scripts are
stored.
|
7. |
Holding down Ctrl, click the scripts that you want to play, and click Open.
|
8. |
Choose an option from the On completion list box.
|
To save the files to a specific folder, click Browse, and navigate to the folder you want. |
9. |
Click Play.
|
Choosing Don’t save from the On completion list box lets you assess the
results before overwriting the original image.
|
|
|
Copyright 2012 Corel Corporation. All rights reserved.