This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > PainShop Pro Scripting > July 2007 > Crash Avoidance in 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 |
Crash Avoidance in Script
|
|
| Will Goss 2007-07-20, 6:19 pm |
| I have a number of Bound Scripts to load plugins.....This allows me to add
them to my menus...they work fine except.....
The problem is when I load the plugin through the script and then decide to
cancel it, it dings and asked if I wish to continue the script. I would like
it just to close.....
The scripts were recorded by selecting the plugin, then select ok, it
closes, and save I saved the script...perheps I should have canceled the
plugin while recording the script...
How should I change these scripts.......
--
Will
| |
|
| "Will Goss" <willgoss@adelphia.net> wrote in news:469f85f8$1_2@cnews:
> I have a number of Bound Scripts to load plugins.....This allows me to
> add them to my menus...they work fine except.....
>
> The problem is when I load the plugin through the script and then
> decide to cancel it, it dings and asked if I wish to continue the
> script. I would like it just to close.....
>
> The scripts were recorded by selecting the plugin, then select ok, it
> closes, and save I saved the script...perheps I should have canceled
> the plugin while recording the script...
>
> How should I change these scripts.......
>
I don't believe you can. The script expects you to use the plugin. If you
cancel the plugin you will get the message about continuing the script.
Click Yes and that will close the dialogue and and finish the script.
Regards,
JoeB
| |
| Spandex Rutabaga 2007-07-20, 6:19 pm |
| Will Goss wrote:
>
> I have a number of Bound Scripts to load plugins.....This allows me to add
> them to my menus...they work fine except.....
>
> The problem is when I load the plugin through the script and then decide to
> cancel it, it dings and asked if I wish to continue the script. I would like
> it just to close.....
That's not the way scripts work. From the standpoint of scripting
invoking a plug-in is no different from invoking a native PSP
command. Scripts are structured in such a way that a command in
the script can be canceled when the script is run interactively.
When you cancel a command in a script PSP cancels that command
but then asks you if you want to terminate the script since
canceling an command creates an ambiguous situation. In other
words you might have wanted to cancel only the command in question
or you might have wanted to completely stop the script. There is
nothing you can do about this ambiguity. You might, however, be
able to force a silent exit from your script by pressing the Esc
key when the first dialog appears.
| |
| Will Goss 2007-07-20, 6:19 pm |
| Thanks, I guess I didn't expect to find any good answer, but....
I hoped there may be an "on error" or "exit" command after Canceling closed
us out but now I see it will not get back to the script to close out
nicely... I will just keep on clicking "No".
"Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
news:46A110CA.F7ABA4A4@agabatur.xednaps...
> Will Goss wrote:
>
> That's not the way scripts work. From the standpoint of scripting
> invoking a plug-in is no different from invoking a native PSP
> command. Scripts are structured in such a way that a command in
> the script can be canceled when the script is run interactively.
> When you cancel a command in a script PSP cancels that command
> but then asks you if you want to terminate the script since
> canceling an command creates an ambiguous situation. In other
> words you might have wanted to cancel only the command in question
> or you might have wanted to completely stop the script. There is
> nothing you can do about this ambiguity. You might, however, be
> able to force a silent exit from your script by pressing the Esc
> key when the first dialog appears.
| |
| Joe Fromm 2007-07-20, 10:17 pm |
| I don't think there was a way around this, since I think PSP reacts to the
command being cancelled before the script can handle it. But it might just
be possible to define an exception handler in the script and finesse it that
way.
If I get some time I'll try to find a solution.
"Will Goss" <willgoss@adelphia.net> wrote in message
news:469f85f8$1_2@cnews...
>I have a number of Bound Scripts to load plugins.....This allows me to add
>them to my menus...they work fine except.....
>
> The problem is when I load the plugin through the script and then decide
> to cancel it, it dings and asked if I wish to continue the script. I would
> like it just to close.....
>
> The scripts were recorded by selecting the plugin, then select ok, it
> closes, and save I saved the script...perheps I should have canceled the
> plugin while recording the script...
>
> How should I change these scripts.......
>
> --
> Will
>
| |
|
| "Joe Fromm" <jfromm-DieSpammersDie-@mn.rr.com> wrote in
news:469feeca$1_3@cnews:
> I don't think there was a way around this, since I think PSP reacts to
> the command being cancelled before the script can handle it. But it
> might just be possible to define an exception handler in the script
> and finesse it that way.
>
> If I get some time I'll try to find a solution.
>
If you get the time, that would be great! Like Will, I use boundscripts
quite a lot for this, and once asked Suz about it and she slso felt it
was something one has to live with.
Regards,
JoeB
> "Will Goss" <willgoss@adelphia.net> wrote in message
> news:469f85f8$1_2@cnews...
>
>
>
| |
|
| Nice to see you back Joe!
W
"Joe Fromm" <jfromm-DieSpammersDie-@mn.rr.com> wrote in message
news:469feeca$1_3@cnews...
>I don't think there was a way around this, since I think PSP reacts to the
>command being cancelled before the script can handle it. But it might just
>be possible to define an exception handler in the script and finesse it
>that way.
>
> If I get some time I'll try to find a solution.
>
>
> "Will Goss" <willgoss@adelphia.net> wrote in message
> news:469f85f8$1_2@cnews...
>
>
| |
| AuntySpam 2007-07-21, 6:18 pm |
| Good to see you Joe
--
Norma Cooper
Supported Living Coordinator
Options Family of Services, Inc.
"Joe Fromm" <jfromm-DieSpammersDie-@mn.rr.com> wrote in message
news:469feeca$1_3@cnews...
|I don't think there was a way around this, since I think PSP reacts to the
| command being cancelled before the script can handle it. But it might
just
| be possible to define an exception handler in the script and finesse it
that
| way.
|
| If I get some time I'll try to find a solution.
|
|
| "Will Goss" <willgoss@adelphia.net> wrote in message
| news:469f85f8$1_2@cnews...
| >I have a number of Bound Scripts to load plugins.....This allows me to
add
| >them to my menus...they work fine except.....
| >
| > The problem is when I load the plugin through the script and then decide
| > to cancel it, it dings and asked if I wish to continue the script. I
would
| > like it just to close.....
| >
| > The scripts were recorded by selecting the plugin, then select ok, it
| > closes, and save I saved the script...perheps I should have canceled the
| > plugin while recording the script...
| >
| > How should I change these scripts.......
| >
| > --
| > Will
| >
|
|
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|