3 Replies Latest reply on Aug 2, 2016 11:58 PM by birnerseff

    Return error from script / terminate action?

    birnerseff Level 2

      Hi,

       

      I have added a script to an action via "insert menu command". The script may detect an error condition (selection does not meet the script's expectations). In that case I would like to terminate the action that calls the script. The best I can get at so far is showing a dialog "press ok to continue if there was no error message"

      I can make the script have an error (e.g. by calling non-existent function exit() after an alert), but the action proceeds

       

      Regards