Mucking Around

All flavors welcome.
Forum rules
Be kind.
Post Reply
User avatar
richmond62
Posts: 2820
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Mucking Around

Post by richmond62 »

I thought I'd muck around with the MenuBar stack . . . which is, in case you didn't know, a script-only stack, that by some sort of arcane magic manifests itself as a 'stack' stack (Yup: that's a seriously crappy way of describing what happens: you do better!) when the IDE is fired up.

Many long years syne I made a stack that would muck around with the MenuBar stack on the legacy IDE (LC 8), but, obviously, the settings would NOT stick between sessions. :(

Now, while editing script-only stacks in a text editor is possible, as I am almost entirely incapable of visualising what a stack might look like in my head, I would like to take a script-only stack (in current case the MenBar stack) and muck around with it in the IDE in the 'normal' way one mucks around with stacks, and then . . . and then . . . and then . . .

. . . somehow, save it 'back' to a script-only stack.
https://richmondmathewson.owlstown.net/
User avatar
tperry2x
Posts: 1581
Joined: Tue Dec 21, 2021 9:10 pm
Location: Britain (Previously known as Great Britain)
Contact:

Re: Mucking Around

Post by tperry2x »

If I was editing a livecodescript file, I'd do it from within the IDE using:

Code: Select all

edit the script of stack "revseutilities"
You could then select all, copy & paste into whatever stack you wanted to try stuff out in.

Then, when done, paste back in using the script editor in the same fashion, then save.
Or, if you don't have permissions to save the stack (windows and Linux), then:

Code: Select all

save stack "revseutilities" as "/home/tom/Desktop/revseutilities.livecodescript"
[substitute path and filenames as needed]

Then manually copy the livecodescript file back into the relevant folder, replacing the original.
Of course, having made a backup first!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests