I would like to start off with, this is not a tutorial on how to fully utilize the History Palette but rather it’s a general overview of how the History Palette can be used to assist you in creating scripts and all of its script specific features.
The History Palette (View -> Palettes -> History) is a palette that lets you see all of the edits you’ve done to an image, quickly undo and redo multiple commands in a single click, and can be used to perform functions on other images as well as saving out scripts.
What’s truly great about the History Palette for scripters are all of the functions available to us as scripters. The first such functions are the “Save to Script” and “Save to Quickscript” functions. Both can be accessed by right-clicking in the history palette an choosing them from the context menu.
Save to Script
So let’s say that you’ve been editing your image and you just created a routine that you think would be excellent as a script. You could go through the hassle of recreating every step you need, or you could simply use the history palette and the “Save To Script” function. Save to script will take all of the currently highlighted commands and let you save them out to a script just as if you had been recording the script yourself the whole time. It’s a great time saver and it lets you make scripts with little to no hassle.
One of the nice things about this is you can pick and choose which items you want to record. Simply hold the CTRL key down while selecting the items (Make sure you’re clicking on the names and not the eyeball) so you can avoid any unnecessary steps in your script. On occasion, there may be steps that were undone originally that you still want to have in the final script. These are called “inactive” commands. When you use the save to script option you’ll see at the bottom of the save dialog an option to “Save only Active Commands” when this is checked the inactive command will not be saved to the script even if it is one of the selected commands. So if you have any inactive commands selected for your script you’re gonna want to be careful to uncheck this option before saving.
Once saved, you can run it just like any other script.
Now, the other option was “Quickscript.” Quickscripts are temporary scripts that are meant to be used for quick simple repetitive tasks. Things you want to be able to do with the press of a button without creating a permanent script. At the top of the history palette, you’ll see two buttons for quick scripts, Play and Save. You save a quick script in exactly the same way you save a regular script. Once the script has been saved you run it by clicking on the “Run quickscript” button. This button can be run on any open image inside PSP and it’ll run the last saved quickscript.
If you save another quickscript it’ll overwrite the old one making these scripts impermanent. Quick Scripts are also run in restricted mode. This means they won’t be able to save or close images.
Apply to Other Documents
The History palette can also apply any highlighted commands to all other opened images quickly without having to save a script. Simply highlight the commands you want to duplicate across all other opened images, right-click an select “Apply to other open documents.” This will automatically apply the command to every open document in PSP.
Copy to Clipboard
This one is mostly for programmers. Although PSP does provide an API list of commands it’s sometimes frustrating to try and recreate all of the necessary parameters from this document. If you want just a quick template of a command to paste into your script you can use the “Copy To clipboard” option inside the History Palette.
Simply run the command you want to grab, then right-click on it an select “Copy to Clipboard” It’ll place the script text for that command in the clipboard for you to add and tweak in your own script. No need to track down every detail, just let PSP do most of the heavy lifting for you.
The History Palette has a number of features that scripters can use to make great scrips quickly and effectively. From selective saving of commands to scripts to copying detailed data for manual script creation it’s a handy tool. But its features go beyond just scripting, and I highly recommend exploring and learning about all of its features as it’s a very powerful tool that you may find it useful for everyday editing.