At Canela, we have tech that does this successfully and has been in production for many years. I never looked under the hood to see details so there may be things i am not aware of maybe some things that have to be done a certain way. We encrypt the code on disk, but once its loaded everything is script only stack used as a behavior. As long as a script is not running, you can set a new script of any stack, card or control, or set its behaviorscript.
I am not sure about changing the script of the main stack, never tried that, if u have to do that, that seems like too much. Stuff like this is fun to work on, and once it works its very satisfying. This is where Livecode shines.... you can do stuff that I don't think you can do with many other platforms. Cheers On Sat, Aug 2, 2025 at 8:44 AM jbv via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi list, > > Years ago I built a desktop app with LC, and the client is still using > it. > Users of the app work in the same company but are scattered in different > cities. Since there were small differences between cities, I found it > easier to build a slightly different version of the app for each city, > with different login & pwd. > Now the client would like to be able to switch from one app to another > (from one city to another) without quitting the app, launching the app > of another city, entering new login & pwd, etc. > > An option could be simply to download the stack & card scripts for other > cities from a remote server and replace the current scripts in the > standalone with new scripts. The app features a main stack and no more > than 10 substacks. The structure (fields, buttons, etc.) are identical, > only the scripts and some data (downloaded at startup) are different. > > So my question is : is replacing all scripts of a standalone on the fly > possible ? If yes, is it a good idea, is there any safety issue, and > are there alternatives ? > > Thank you in advance. > jbv > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode