Page 2 of 2
Re: Saving as LiveCodeScript
Posted: Mon Apr 22, 2024 9:12 am
by richmond62
While I can do this sort of thing by opening the
revmenubar.livescript file in a text editor relatively easily, most beginners are not going to be able to: although it would be nice if they had a stack that let them switch between light and dark mode in such a way that their copy of LiveCode would retain those settings both between sessions and if they wanted to copy/restore their installation to another machine.
-
-
Re: Saving as LiveCodeScript
Posted: Mon Apr 22, 2024 2:25 pm
by bwmilby
It is certainly possible to write a script that will export a stack into a script only form. Certain things would make the process more complex. If you count on object IDs being a certain value for example. Another issue is any binary objects (images…) - do you want to reference files or include them in the script? I would guess that the IDE stacks were more hand crafted to be instantiated via script vice exported from a stack.