I’m trying to add some error checking so when a user clicks Stop on a progress bar, the problem quits nicely rather than glitches out.
So I put the progress bar action in a try clause. It works, now I can run some commands and handle the stopping nicely.
EXCEPT… the script doesn’t stop
This is in a loop, and once I run my “on error” commands, it just goes back to the loop.
How to I let the script actually STOP at this point? I’m one or two subroutines deep so ‘return’ also won’t stop the script. And will actually break it even more.
Edit: Moving on in the script, I’m having the same problem with regular dialogs. I’m trying to catch “cancels” and I can, but then the script doesn’t actually stop.