This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > PainShop Pro Scripting > October 2007 > execute script





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author execute script
Bruce

2007-10-09, 6:18 pm

Hi Folks,

Can someone please tell me how to run another script from a script.

The command 'RunScript' seems to be the right one, but I'm not sure of
the syntax.

I expect something like:
App.Do(Environment, 'RunScript', {'FileName': 'ScriptName'})
but it doesn't work.

thanks
Bruce
Bruce

2007-10-09, 6:18 pm

Bruce wrote:
> Hi Folks,
>
> Can someone please tell me how to run another script from a script.
>
> The command 'RunScript' seems to be the right one, but I'm not sure of
> the syntax.
>
> I expect something like:
> App.Do(Environment, 'RunScript', {'FileName': 'ScriptName'})
> but it doesn't work.
>
> thanks
> Bruce


Solved. I forgot about the \\ in the file path.

App.Do( Environment, 'RunScript', {'FileName':
'C:\\Test\\MyScript.PspScript'})
Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews