I have a script that is being called from an action. I would like to present a user with two buttons (standard "OK/Cancel"), if the user presses the OK button the script ends and the action execution proceeds as normal. However, if they press the "Cancel" button I would like the action to be halted so that no further steps in that action will be executed.
One way I thought of for accomplishing this would be to simply call another, dedicated action from a known loaded actionset that simply consists of a "stop" step with the dialog option un-checked. I haven't tested this method yet (will probably do so after posting), but I was curious if anyone knew of a way to do this directly from the script being called?
Thanks as always for your replies!
Halting action execution via script?
-
bdeshazer
Halting action execution via script?
Fyi, calling a "Stop" action like I had suggested doesn't work... should have figured that it wouldn't. The action is called successfully, but the script environment must have it's own "execution stack", which makes sense when you think about it. When the script terminates the action that called it picks right up and continues no matter what.