You’ll find it much easier and faster working with scripts via the Script toolbar. If it is not already displayed, choose View > Toolbars > Script to view the Script toolbar.
About the Script Toolbar Buttons
Using the File > Script Menu Items
Recording and Saving a Script
Running a Saved Script
Stopping or Undoing a Script
Editing Scripts Using Paint Shop Pro
Editing Scripts Via the Text Editor