Question
How to cancel or stop the action that called the script?
Hi,
I would like to stop the action that called my script. I can see in the forum how to get the calling action name:
- var ref = new ActionReference();
- ref.putEnumerated( charIDToTypeID("Actn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
- var desc = executeActionGet(ref);
- var actionName = desc.getString( charIDToTypeID("Nm ") );
- var actionSetName = desc.getString( charIDToTypeID("PrNm") );
- alert( 'Current selected action is: '+actionName+'\rin the action set: '+actionSetName );
Is there some way to stop the action? (What I'm doing in the script is giving the user the option to display help; if this option is chosen I display the help and would like to be able to terminate the action).
Thanks!
Robert
