can i create a script that forces script editor to close

Can i do the topic???

as i have a couple of scripts that take ages, and i there is amistake then i have to wait.

But i wondered if i could just close the script editor with a script so the script stops.???

If “command+dot” doesn’t work, you can force-quit it by hand, or you can “kill” the process. Take a look here:
http://macscripter.net/exchange/index.php?id=P99

This will kill the Script editor :

set the_script to “ps -awwx | grep -v grep | grep Script | awk ‘{print $1}’”
set the_PID to do shell script the_script
do shell script "kill " & the_PID

this script was automatically tagged for
color coded syntax by Script to Markup Code
written by Jonathan Nathan

This is not allways very safe… For instance, it will kill my copy of “FastScripts” :cry:
I allways prefer asking “grep” for the process’ path:

tell application "Finder" to set scriptEditorPath to application file id "ToyS" as string
set scriptEditorPath to quoted form of POSIX path of result
do shell script "ps -xww | grep -v grep | grep " & scriptEditorPath & " | awk '{print $1}'"
do shell script "kill -1 " & result

Fast scripts???

Very fast!

http://www.red-sweater.com/RedSweater/FastScripts.html