As the topic asks. Is there a way to check if a script is running or not? Via the console, I guess.
The easiest way is to add several printc commands inbetween lines of code.
example:
printc "before if block"
if test == 0
printc "test is %.f" test
set test to 1
printc "test is %.f" test
endif
printc "after if block"
when you open the console, if your script is running you'll see
before if block
test is 0
test is 1
after if block
before if block
after if block
before if block
after if block
before if block
after if block
before if block
after if block
before if block
after if block
before if block
after if block
....
If you're just checking to see if just that particular script is running, this is not bad for a quick and dirty test.
If you plan on testing other stuff as well, add doOnce conditions to stop the spamming.