One of the best things about scripting with PSP is that PSP fully supports simply recording the actions you take inside the program and saving it as a script to be used again later.
This offers first-time scripters an easy way to get their favorite techniques and effects into a script that they can use over an over again, or even share with the rest of the PSP community. No need to learn or understand coding if you have no such desires.
The flexibility of the script will be limited, but for most people they never have a need to go above and beyond this level of script creation. So, without further adieu, let’s record your first script.
NOTE: I am performing all of these steps in the latest version of PSP 2018, though they should work for every version of PSP from 8 to 2018.
First you’re going to want to make sure you have the Script Toolbar open. It looks like this
If you don’t see this toolbar you can turn it on by going to View -> Toolbars -> Script
The buttons on this toolbar from left to right are:
- Script Selection drop-down – you select the script you wish to run from this list of scripts
- Play – Press the blue triangle to run the currently selected script
- Run Multiple Scripts – Added a few versions back (so it won’t exist on older versions of PSP) this button lets you define several scripts to run one after the other
- Edit Script – Looking like a pen writing on paper this button will either open the “Simple Script Editor” or the text editor defined in the File Locations preferences.
- Toggle Execution Mode – this determines if the script will be running silently or interactively. You can override this setting on individual commands
- Stop – Stops the currently running script from continuing
- Record – the red circle is how you begin the recording process.
- Pause – the blue vertical bars let you pause the recording of your script while you perform actions you don’t want to be included in your script
- Cancel – This red “x” Stops recording the script throwing away any and all recorded actions
- Save Script – Once you’ve performed all of your steps you need to save out the result. This button opens a file save dialog where you can choose the name of your new script.
There is a lot to cover but for now, we’re just going to focus on Record, Save, Select, and Play.
For our first script, we’re going to do something very simple. We’ll add a 10-pixel border using the border command.
- First, hit the red record button on the script toolbar
- Go to Image -> Add Borders
- Give each side 10 pixels
- choose a color for the border
- Hit OK
- Hit the Save Button on the script toolbar
- Give the script a name you’ll recognize, I named mine “Add 10-pixel border”
Congratulations, you’ve just recorded and saved your first script. Now, let’s try running it.
From the script toolbar click on the script drop-down to see a list of all of the scripts already on your system. Select your script from the list, and then hit the blue Play button. You should see an extra 10-pixel border is added to the image.
Take the time to investigate all of the scripts that come with PSP. You may find some are very useful and may even give you ideas for what type of scripts you want to record next.
In the next lesson, we’ll cover the simple script editor.