Page 1 of 1
Round Trip: script-only stacks
Posted: Thu Aug 27, 2026 4:33 pm
by richmond62
Is it possible to:
1. Save a binary stack as a script-only stack?
2. Save a script-only stack as a binary stack?
If, in case #1, a binary stack contains images and other objects, do they get lost on conversion to a script-only stack?
Re: Round Trip: script-only stacks
Posted: Thu Aug 27, 2026 5:29 pm
by Emily-Elizabeth
Yes, all controls and other imported binary data would be lost. The revMenubar shows how to create a stack with controls and images from a script only stack.
Going from a script only stack to a binary stack would just require you to copy and paste the code into the stack/card script (or where ever)
Re: Round Trip: script-only stacks
Posted: Thu Aug 27, 2026 6:39 pm
by richmond62
Going from a script only stack to a binary stack would just require you to copy and paste the code into the stack/card script (or where ever)
emphasis is mine.
Frankly having to copy-paste each script into each object sounds like a 'right bother'.
Re: Round Trip: script-only stacks
Posted: Thu Aug 27, 2026 7:17 pm
by ClipArtGuy
richmond62 wrote: Thu Aug 27, 2026 6:39 pm
Going from a script only stack to a binary stack would just require you to copy and paste the code into the stack/card script (or where ever)
emphasis is mine.
Frankly having to copy-paste each script into each object sounds like a 'right bother'.
You can create a script only stack that builds an entire GUI stack with objects etc from a single paste. For example, the demo for the SoudiumXT widget library is a single .livecodescript file that can be pasted into a stack script. Saving and re-opening (or firing a preopenstack from the message box) builds the entire stack from a single paste.
https://github.com/SethMorrowSoftware/S ... codescript
of course for the functionality to actually work, you will need to have SodiumXT installed.
EDIT: All of these demos are each built from a single lievcodescript file.
Re: Round Trip: script-only stacks
Posted: Thu Aug 27, 2026 7:59 pm
by FourthWorld
A script-only stack contains only the script of the stack.
Re: Round Trip: script-only stacks
Posted: Thu Aug 27, 2026 8:11 pm
by ClipArtGuy
That is a fair distinction. My point was that it is possible to build a GUI app from a single script only stack, including all objects, etc without having to manually apply scripts to each object.
Re: Round Trip: script-only stacks
Posted: Thu Aug 27, 2026 10:00 pm
by Emily-Elizabeth
You can always include images as base64 encoded data in the stack only script. It'll make your stack balloon in size, but no dependencies is nice too