First to see if its possible to bring back the code from the
runtime version, at least partly. I have found Jon's Commands and
will see what it can do with its script coercion command.
The script coercion will not be able to reconstruct the script.
You should indeed always save a copy, as the run only version has
crucial information stripped out of it, making it essentially
impossible to recover.
Thanks for your answer Jon. I saw as soon as I tried that the script
to string coercion only works for script not saved as run only -
logical.
As I wrote I feel really stupid about this and it is the first time I
have made this error.
By opening the compiled script in a text editor I have been able to
restore all defintions, properties and handlers (just definitions). I
have a lot of the code in parts from the devlopment sketches and some
fairly old backups, so its not to much work to recontruct it.
My main concern is really to make a nice script to make runtime
scrips in a different and simple way. Because I don't want to risk
this to happen again. So is there a way to shed the source code while
resaving a script, preferably not scripting the SE?