Run Selected Script vs. Run Script

Moderator: Kathy_9

Post Reply
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

Run Selected Script vs. Run Script

Post by JoeB »

The Script toolbar in PSP 2018 and 2019 (and likely others) has a little right-pointing arrow beside the script selection dropdown to Run Selected Script. On the toolbar is also a folder icon to Run Script. The latter opens a dialogue where you can select a script to be run. The former just runs the script that you selected when you use the dropdown to select a script.

So I'm curious about what the advantage is to having the Run Script folder icon available, because they both seem to do the same thing. Is that just to allow you to keep one script you might use a lot in the dropdown box and still select another script from the Run Script dialogue?

And the reason I first came up with the question is that I have customised my toolbars, and in doing so I removed the Run Script folder icon from the Scripts toolbar. And when I first open PSP with no image open that icon doesn't appear on the toolbar. But as soon as I open an image that Run Script icon appears, even though it was supposed to be removed from my selected workspace. So apparently you can't get rid of it permanently even when you customise the Scripts toolbar.
Last edited by JoeB on Wed Aug 15, 2018 3:15 am, edited 1 time in total.
Regards,

JoeB
Using PSP 2019 64bit
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: Run Selected Script vs. Run Script

Post by LeviFiction »

As far as most people are concerned there really isn't much of a difference beyond how you select the script. After all Run Script requires you to browse to the script while Run Selected Script will use the drop-down that has done all of the script searching for you.

The biggest difference is permissions.

Run Script lets you choose a script from anywhere on your harddrive. Of course any script that isn't in one of the scripts-trusted paths will always run as restricted. So if the script is not in a known folder it'll run as restricted. Also if the script path exists in both Scripts-Trusted and Scripts-Restricted it'll run as restricted.

They are also recorded differently when you record scripts.

If the script name is left out of 'RunSelectedScript' it'll quite literally run the currently selected script. Which is neat. Because I can use RunScript on a script that runs the "RunSelectedScript" command and it'll run whatever is selected in the drop-down.

Run script also lets you identify whether or not to run the script interactively. And gives you the full path of the script it's trying to run.

And in both cases, if the script you're trying to call is trusted but the script you're calling it from is restricted then they'll both be run as restricted.
Last edited by LeviFiction on Wed Aug 15, 2018 3:50 am, edited 1 time in total.
https://levifiction.wordpress.com/
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: Run Selected Script vs. Run Script

Post by JoeB »

Thanks for the info. Plus I realize I misspelled the first word of the topic- now fixed!

Still don't know why I can't remove the Run Script icon from the Scripts toolbar permanently. :-(
Regards,

JoeB
Using PSP 2019 64bit
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: Run Selected Script vs. Run Script

Post by LeviFiction »

Have you tried resetting your workspace?

I just tried deleting the run script icon from my toolbar and it stays gone even after restarting the program. So I wonder if it's something specific to your machine.
https://levifiction.wordpress.com/
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: Run Selected Script vs. Run Script

Post by JoeB »

LeviFiction wrote:Have you tried resetting your workspace?

I just tried deleting the run script icon from my toolbar and it stays gone even after restarting the program. So I wonder if it's something specific to your machine.
I'll do some more tests and workplace saves. It does stay gone for me to after restarting the program, but immediately returns when I open an image from Manage.
Regards,

JoeB
Using PSP 2019 64bit
Post Reply