Edit the script of a stack without opening it

Mike Kerner MikeKerner at roadrunner.com
Sat May 23 11:32:48 EDT 2015


For me the next time I have to be able to do this...

I had a stack that was causing LC to hard-crash at startup.  THAT is really
inconvenient when you're trying to recover your stack and when you're
trying to fix it, since you can't actually get the stack to the script
editor, so

1) Create another stack
2) put a button in that stack
3) script of the button:

*on* mouseUp
   *answer* file "Please select a stack" with *type* "LiveCode
Stacks|rev|RSTK"
   *if* it is empty *then* *exit* mouseUp
   *edit* the script of stack it
*end* mouseUp

DON'T FORGET, YOU HAVE TO SAVE THE STACK WHILE YOU'RE STILL IN THE SCRIPT
EDITOR (COMMAND/CTRL-S)

-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the use-livecode mailing list