When you select to run the script, it should run the
version in the editor and not the currently saved
version. So, I would recommend, that it saves it to a
temp file, and runs the temp file version (in case you
don't want to overright the actual file).
Logged In: YES
user_id=165877
In release 0.9.9 all open files will be saved before being
executed / debugged.