Add Name Script
by Sigrid, Owner of PSPx3



Written in PSP9 for those who have a good knowledge of PSP and a basic knowledge of scripting.
Any similarity with any other tutorial is purely coincidental

This tutorial goes a step further from the previously released tutorial
Easier Tag Script
It provides a new script that asks for names and adds them according to the previously created script.
Some Script-Editing in the Text Editor is needed for it to work.

You need the following

Materials



(a newer version of the scripts can be downloaded here)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Preparations

  • Extract the Zip file. It contains the AddName_se.pspscript, a text file with two script lines and an empty tag for you to start with (feel free to use a tag of your own).

  • Put the AddName_se.pspscript into your Scripts (Trusted) folder.

  • I strongly suggest that you do the Easier Tag Script tutorial first.
    It will provide you with a script that can be used with the new AddName_se.pspscript.
    It also shows you how to set up PSP to be able to use scripts.

  • make sure your Script Toolbar is visible
    I recommend to have the Script Output palette open as well. If there are any troubles with the script the output palette will tell you where the problems lie.



And now we begin:

  1. Create a new Folder for your tags and copy your tag and the other materials into that folder. Add the folder to your Scripts (Trusted) path in PSP.



  2. Open the Example tag (or one of your own) in PSP
    (Note: the tag has to be in PspImage-format or another that supports layers because the script will only add layers with your tag names to the existing tag without merging.)
    Either record a script now that adds your name to the tag or copy the script you have created with the Easier Script Tutorial into the folder of your tag. You should now have at least three files in that folder: Your tag, the script that adds the name and the text-file from the Materials.
    (Note: The folder with your tag should be in the Scripts (Trusted) path of your Paint Shop Pro as well or there will be a conflict when saving the tags.)



  3. In your Script-Toolbar select the script you have created



    Select "Edit Selected Script" and press the button "Text Editor..."



  4. Your Notepad should come up with the script you have created.



    Open the "TextForNameAddingScript.txt" in another Editor Window and copy the first line.



    Back in your own script, insert the new line directly under the first line of your script.
    (Note: in later versions of PSP the first line of the script looks like this "from PSPApp import * " but that doesn't matter for this tutorial. Just make sure that the line from the text-file is the second line in your script. )



  5. Still in your script search for the line where you added your text. I added my name so my line would be
    'Characters': u'Sigrid',
    I just searched for "sigrid" of course.
    Select the second part of that line (the u'Sigrid' in my case). But be careful, don't delete the comma by accident or the script will fail.



    Back in the "TextForNAmeAddingScript.txt" copy the second line



    and replace your name with that expression



  6. Save your script and close both editor windows.

  7. Back in PSP call up the AddName_se.pspscript



  8. And now the fun part: let the script run



If you have knowledge of scripting and script editing you are probably curious about the script. If you want to know more, follow the link.

What the script will do







~~~~~~~~~~~~~~~~

PSPX3 Tutorial Index

~~~~~~~~~~~~~~~~



This tutorial was written by Sigrid
exclusively for PSP Times Three
Any similarities to other tutorials is merely a coincidence.
~All rights reserved - May 2011~