Force quit scripts

If i force quit script and then launch it, it gives error “variable xxx is not defined, Error 4, Error number -2753 occured”.

I can fix it by opening script in Script Editor and changing it a bit and then saving, then it runs fine.

Hi cirno,

I’m sorry, wouldn’t it be better to debug the script(s) properly?
Then there is no need to force quit it

Post the script.

I would like to learn debugging, is there any good webpages about this?

What’s about reading a book? Hanaan Rosenthal’s A Comprehensive Guide is a good choice.
Otherwise do it step by step: if an error occurs, find the cause and remove it.
Trial and error is a part of scripting. I’ve never written a script, which worked perfectly at once

Oh come on now, how about the famous “Hello World”… okay I’ll shut up now.

To OP, Stefan is right though it’s a trial and error process.

::goes back to lurking::