I see there’s no ‘Apply’ button or equivalent functionality in the Script Editor. Instead, it seems that scripts are applied automatically when switching to Run mode. I see how this will avoid the problems of someone forgetting to apply their changes and wondering why some behaviour hasn’t changed, but it also feels really vague and hands-off – not what I like when developing!
If I edit a script while IN the Run mode, it’s automatically applied after a second or so, whether I’m ready for that or not. Sure, major script edits while running isn’t generally a great idea, but the ability to do this is one of LiveCode’s very cool abilities. This rather gets in the way. It also caused a
In testing this, I tried a very (very!) basic script that would make the behaviour obvious: in a card script I simply said:
on idle
beep
end idle
Then I changed that (in Run mode) to have ‘wait 50 ticks’ below ‘beep’.
Then I edited the line so there was a script error (‘wait 50 tic’). After flagging the line with the error it ALL stopped, including my ability to edit the script in either mode! This remains even if I close the Script Editor tab for the card script then open the card’s script again.