AppleScript “return” would stop all action?

Quick question but for exemple if I have multiple AppleScript action inside one macro and the first AppleScript return “return”
(E.g if … then return… to stop the script)
Would the macro stop running or will the other AppleScript action run after ?
And if they does how can I prevent them to run if one of them exit with “return”

I'm afraid I don't really understand your question.

If you have a sequence of Execute an AppleScript actions in a macro, then when Keyboard Maestro executes the first one:

  • If it is configured as asynchronous, then Keyboard Maestro will start the AppleScript and continue to the next action.
  • Otherwise, Keyboard Maestro will wait for the AppleScript to finish.
    • If the AppleScript completes successfully, then Keyboard Maestro will continue to the next action.
    • If the AppleScript fails, then
      • if the Notification setting is on on the action, Keyboard Maestro will report it.
      • if the Abort setting is on on the action, then Keyboard Maestro will abort the macro and stop further execution of the macro, otherwise Keyboard Maestro will continue to the next action.