Apply a specific number to new images ?

Corel Paint Shop Pro

Moderator: Kathy_9

Post Reply
Jean-Luc
Advisor
Posts: 2177
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)
Contact:

Apply a specific number to new images ?

Post by Jean-Luc »

Hello,
Is it possible to have PSP starting a specified image number when creating new images ?

I explain what I mean :
When I create a new image or paste a screen capture, PSP gives the image a name like Image1, Image2, etc.
When I'm working on a project and name of file is not important, I save the file in the working folder under PSP format (Image1.pspimage, Image2.pspimage, etc). Those are intermediate files used for the project. The project may take a few days or weeks. When the job is finished, if I don't want to retain those files, it is easy to delete them.

Suppose I've worked with PSP on Day 1. The last created image/file is Image13 and I save it as pspimage. I close PSP.

On Day 2, I want PSP create the first new file as Image 14 but it starts at Image1 again. I need to have a following image number because I'll save with its PSP created name (and 1 to 13 are already saved on disk).

What I do, is to create an empty Image (Image1) and press Ctrl+Y until I obtain Image13.
I delete all those files.
Now, the first image created by PSP has number 14, what I want.

Another way to obtain the same result ?
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
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: Apply a specific number to new images ?

Post by LeviFiction »

Nothing built into PSP, no. I assume it just uses a basic counter variable, and short of hacking the memory data we can't get to it.

I once again return to scripting. It would be possible to create a script where you manually select the folder you want to use, or manually select the last used file, and then it opens and closes new images until reaching that point. I can think of several ways to do this, all with their own pros and cons.

The absolute easiest script, one that simply asks for the number you want to start with and opens and closes images until it reaches that number.

I have a "save incremental" script that each time it's run it will save the file with the next incremental value. Image1.pspimage image2.pspimage but it needs the current file to have already been saved to the harddrive.

It's possible to have PSP read the last opened file from the registry, look in that folder, and determine the next value then have it open and close new images until it reaches the number you want. Of course this only works if you're not already at a number above the largest image in the folder. IF the next number is image3 and you've got image15 open in PSP then the only way around that is closing PSP.

We could do the same thing as the latter, except instead of opening and closing a bunch of new images we just create 1 new image and auto-save with the next increment. Essentially combining the two ideas above.
https://levifiction.wordpress.com/
Jean-Luc
Advisor
Posts: 2177
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)
Contact:

Re: Apply a specific number to new images ?

Post by Jean-Luc »

Thank you for searching Levifiction.
I'll create a script creating 10 images (the same I do manually currently) and deleting them. It may be run a few times (if I want to begin with Image31 for example) and I'll create the between files manually.
No need for a more sophisticated script, I think... :)
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
Post Reply