Please help script error

Corel Paint Shop Pro

Moderator: Kathy_9

Post Reply
All Media Lab
Posts: 28
Joined: Thu May 26, 2016 8:57 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit

Please help script error

Post by All Media Lab »

Hi,

Try to make a script recording with the Topaz Labs Adjust plugin in Painshop Pro 2018.

This is what I do:
  • Open a image
  • Push the red recording button
  • Duplicate a layer and name it Topaz Adjust
  • Go to effects open Topaz Adjust
  • Apply the desired effect
  • Click OK the plugin closes and the effect appears on the layer
  • Go to file> save as and save as a jpg
  • Stop the recording and name the preset
  • Load a new image
  • Run the effect
I get a message about moving the script to a trusted area and this appears:

Code: Select all

Executing RunScript
Executing EnableOptimizedScriptUndo
Executing LayerDuplicate
Executing Layer Properties
Executing Topaz Labs_Topaz Adjust 5
Executing FileSaveAs
------- Command Execution Failed -----------
Command Name:	FileSaveAs
Error Text:	This script has attempted an operation that is not permitted in a restricted script. This script may be run by moving it to a trusted directory.
Traceback (most recent call last):
  File "<string>", line 130, in Do
JascApp.Rexec Failure: Restricted script violation - this script must be trusted in order to run.

Script 'Topaz-Adjust-cold' has completed with an error.

Executing RunScript
Executing EnableOptimizedScriptUndo
Executing LayerDuplicate
Executing Layer Properties
Executing Topaz Labs_Topaz Adjust 5
Executing FileSaveAs
------- Command Execution Failed -----------
Command Name:	FileSaveAs
Error Text:	This script has attempted an operation that is not permitted in a restricted script. This script may be run by moving it to a trusted directory.
Traceback (most recent call last):
  File "<string>", line 130, in Do
JascApp.Rexec Failure: Restricted script violation - this script must be trusted in order to run.

Script 'Topaz-Adjust-cold' has completed with an error.

Executing RunScript
Executing EnableOptimizedScriptUndo
Executing LayerDuplicate
Executing Layer Properties
Executing Topaz Labs_Topaz Adjust 5
Executing FileSaveAs
------- Command Execution Failed -----------
Command Name:	FileSaveAs
Error Text:	This script has attempted an operation that is not permitted in a restricted script. This script may be run by moving it to a trusted directory.
Traceback (most recent call last):
  File "<string>", line 130, in Do
JascApp.Rexec Failure: Restricted script violation - this script must be trusted in order to run.

Script 'Topaz-Adjust-cold' has completed with an error.

Regards & Thanks,

David
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: Please help script error

Post by LeviFiction »

By default recorded scripts are saved into the Scripts-Restricted folder. Move it to the Scripts-Trusted folder.

It's usually located at C:\\Users\\Username\\Documents\\Corel PaintShop Pro\\2018\\Scripts-Trusted
https://levifiction.wordpress.com/
All Media Lab
Posts: 28
Joined: Thu May 26, 2016 8:57 am
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit

Re: Please help script error

Post by All Media Lab »

Thanks!
Now it executes the script but it seems that it is not able to make a recording of Topaz Labs Adjust.
All other things i do are recorded except for the effect.
David
JoeB
Posts: 2778
Joined: Fri Mar 28, 2008 10:04 pm
operating_system: Windows 8.1
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: LENOVO 4524PE4 ThinkCentre M91p
processor: 3.10 gigahertz Intel Quad Core i5-2400
ram: 8 GB
Hard_Drive_Capacity: 4.6 TB
Corel programs: PSP 9, X7 to 2019, 32 & 64-bit
Location: Canada

Re: Please help script error

Post by JoeB »

All Media Lab wrote:Thanks!
Now it executes the script but it seems that it is not able to make a recording of Topaz Labs Adjust.
All other things i do are recorded except for the effect.
David
I posted a reply to your similar post in the Scripting sub-group with info on my opinion based on my admittedly not extensive knowledge. LeviFiction may reply there with his much more extensive scripting knowledge if there is a better explanation.
Regards,

JoeB
Using PSP 2019 64bit
Post Reply