Script Error

Corel Paint Shop Pro

Moderator: Kathy_9

Monteiro
Posts: 68
Joined: Tue Aug 27, 2013 4:49 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit

Script Error

Post by Monteiro »

Hello.

I'm trying to run the GridByPercent script but I keep getting this error.

Image[url=https://flic. kr/p/2ooo1A1]Image1[/url] by José Monteiro, on Flickr

Image[url=https://flic. kr/p/2ookuZ4]Image2[/url] by José Monteiro, on Flickr

Can you help me?

Thanks
Kathy_9
Site Admin
Posts: 2862
Joined: Tue Nov 30, 2010 12:44 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: 8th Generation Intel Core i7 8700 3 20 GHz
ram: 16GB
Video Card: NVIDIA GeForce RTX 2060 [6 GB GDDR6 dedicated]
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2TB
Monitor/Display Make & Model: HP EliteDisplay E243m 23.8-inch
Corel programs: PSPX2 ~2023; Painter 2018~23
Location: USA

Re: Script Error

Post by Kathy_9 »

The answer is in the error message. If you trust the source/script writer of the script, you need to move the script to the Trusted Scripts folder. It's currently in the Restricted Scripts folder. If this is one of LeviFiction's scripts you can certainly trust him.
PSPX9 | PSP2020 | PSP2021| PSP2022 | PSP2023 & PhotoMirage installed; PSPX | PSPX2 thru PSP2019 owned but not installed
http://www.flickr.com/photos/37153430@N03/
Monteiro
Posts: 68
Joined: Tue Aug 27, 2013 4:49 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit

Re: Script Error

Post by Monteiro »

Kathy_9 wrote: Tue Mar 21, 2023 2:01 pm The answer is in the error message. If you trust the source/script writer of the script, you need to move the script to the Trusted Scripts folder. It's currently in the Restricted Scripts folder. If this is one of LeviFiction's scripts you can certainly trust him.
Thanks for your response. However I already changed the scripts to the folder you said but the problem persists :(
Kathy_9
Site Admin
Posts: 2862
Joined: Tue Nov 30, 2010 12:44 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
processor: 8th Generation Intel Core i7 8700 3 20 GHz
ram: 16GB
Video Card: NVIDIA GeForce RTX 2060 [6 GB GDDR6 dedicated]
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2TB
Monitor/Display Make & Model: HP EliteDisplay E243m 23.8-inch
Corel programs: PSPX2 ~2023; Painter 2018~23
Location: USA

Re: Script Error

Post by Kathy_9 »

One other thought. Did you just copy it to Trusted and leave a copy in Restricted? If so, remove it from Restricted, close and restart the program and see if that helps. If that doesn't work, hopefully Levi will come along with an answer as he is far more knowledgeable in this area than I am.
PSPX9 | PSP2020 | PSP2021| PSP2022 | PSP2023 & PhotoMirage installed; PSPX | PSPX2 thru PSP2019 owned but not installed
http://www.flickr.com/photos/37153430@N03/
LeviFiction
Advisor
Posts: 6775
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 Error

Post by LeviFiction »

If a script of the same name exists in both folders the one in the restricted folder will be run every time. So if you copied the script over but still left a copy in the restricted folder it'll act the same way.

Also if you run a script by going File -> Script -> Run that will always run a script in restricted mode regardless of where the script is.

Last thing to check is the file locations. Make sure that Scripts-Trusted folder is not listed under Scripts-Restricted. File -> Preferences -> File Locations.
Monteiro
Posts: 68
Joined: Tue Aug 27, 2013 4:49 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit

Re: Script Error

Post by Monteiro »

LeviFiction wrote: Tue Mar 21, 2023 2:28 pm If a script of the same name exists in both folders the one in the restricted folder will be run every time. So if you copied the script over but still left a copy in the restricted folder it'll act the same way.

Also if you run a script by going File -> Script -> Run that will always run a script in restricted mode regardless of where the script is.

Last thing to check is the file locations. Make sure that Scripts-Trusted folder is not listed under Scripts-Restricted. File -> Preferences -> File Locations.
Tks. Woks now. :wink: