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.
-
-
Saving as LiveCodeScript
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 9446
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Saving as LiveCodeScript
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.
Brian Milby
Script Tracker https://github.com/bwmilby/scriptTracker
Script Tracker https://github.com/bwmilby/scriptTracker