Saving as LiveCodeScript

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9417
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Saving as LiveCodeScript

Post by richmond62 » Mon Apr 22, 2024 9:12 am

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.
-
SShot 2024-04-22 at 11.07.21.png
-
SShot 2024-04-22 at 11.11.29.png

bwmilby
Posts: 443
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
Contact:

Re: Saving as LiveCodeScript

Post by bwmilby » Mon Apr 22, 2024 2:25 pm

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”