script-Language - manual

Corel Paint Shop Pro

Moderator: Kathy_9

Post Reply
hajo
Posts: 17
Joined: Wed May 11, 2011 11:42 am
operating_system: Windows XP Home
System_Drive: C
32bit or 64bit: 32 Bit

script-Language - manual

Post by hajo »

Hallo,
where can I find a manual on the scripting language of PSP?
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: script-Language - manual

Post by LeviFiction »

The language PaintShop Pro uses is called Python. It's a very popular language and available for download all on its own.

There are numerous tutorials all over the internet. Including Python.org and you can also get some help understanding Python from sites like CodeAcademy.com

SuzShook has some tutorials on her website on programming, they cost $15 a piece if you're interested. http://scrapbookcampus.com/paintshop-pr ... ng-course/

Once you understand the basics of pythong, calling commands, using Lists, Dictionaries, Tuples, and of course spacing. Then you'll want to download two documents from Corel.

Scripting for Script Authors - This is an introduction to how scripts work inside of PaintShop Pro.

And the PaintShop Pro Scripting API for X. This is a list of all of the available commands, what parameters need to be passed to them, and what information they return.

You can download both of them from ftp://ftp.corel.com/pub/documentation/PSP/
https://levifiction.wordpress.com/
hajo
Posts: 17
Joined: Wed May 11, 2011 11:42 am
operating_system: Windows XP Home
System_Drive: C
32bit or 64bit: 32 Bit

Re: script-Language - manual

Post by hajo »

Hello Levi Fiction
thanks for the addresses.

You've helped me a lot when creating a script for convert of cmx to gif for multiple folders.
Unfortunately, there is still an error that occurs regularly.:

------- Command could not be executed -----------
Command name: File Open
Error Text: Not enough memory to perform this command. Connect one or more documents or applications and try again.
If the problem is not resolved, you may need change the memory settings or work with a smaller document.

My PC:
Windows 8 with 8GB memory, HDD: 362 GB free.

The error is probably due to internal fields of PSP that are not big enough.
Can you help?
LeviFiction
Advisor
Posts: 6831
Joined: Thu Oct 02, 2008 1:07 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: Alienware M17xR4
processor: Intel Core i7-3630QM CPU - 2_40GH
ram: 6 GB
Video Card: NVIDIA GeForce GTX 660M
sound_card: Sound Blaster Recon3Di
Hard_Drive_Capacity: 500GB
Corel programs: PSP: 8-2023
Location: USA

Re: script-Language - manual

Post by LeviFiction »

Keep in mind PSPX is a 32-bit program, and only able to use a maximum of 2GB of RAM. Or somewhere there abouts.

One question, is the script properly closing the other images? Could be an old memory leak, or the program is not releasing the memory fast enough to keep up with the script.
https://levifiction.wordpress.com/
hajo
Posts: 17
Joined: Wed May 11, 2011 11:42 am
operating_system: Windows XP Home
System_Drive: C
32bit or 64bit: 32 Bit

Re: script-Language - manual

Post by hajo »

'is the script properly closing the other images?' :

# FileClose
App.Do( Environment, 'FileClose', {
'FileList': [file],
'Folder': u'H:\\Temp1\\CmxToGif', # mit \\
})


'the program is not releasing the memory fast enough to keep up with the script' :
can I influence it?
Radim
Posts: 712
Joined: Mon Nov 01, 2010 5:54 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
ram: 4GB
Monitor/Display Make & Model: 27 inch

Re: script-Language - manual

Post by Radim »

Post Reply