Page 1 of 1
Editing .livecodescript files
Posted: Thu Sep 21, 2023 12:23 pm
by richmond62
Is there a way to open a .livecodescript file inwith the IDE, edit it, and save it?
OK: I have worked out how to do that.
BUT, I'd like to open a .livecodescript file with code using a file path . . .
Re: Editing .livecodescript files
Posted: Thu Sep 21, 2023 1:11 pm
by Klaus
Hi Richmond,
yes, just use the OPEN dialog.
LC will create a "temporary" script window, where you can edit the script(s).
IMPORTANT:
Hit CMD-S (Save) while the script editor window is still open or your changes are lost.
Best
Klaus
Re: Editing .livecodescript files
Posted: Thu Sep 21, 2023 1:21 pm
by richmond62
Thanks Klaus.
My main difficulty is how to open a .livecodescript along a filepath using code.
Re: Editing .livecodescript files
Posted: Thu Sep 21, 2023 1:32 pm
by Klaus
Hi Richmond,
don't try to "open" or "go" to that stack, just script this:
Code: Select all
edit script of stack "/Users/klaus2/Desktop/broadcaster.livecodescript"
Tested and works.
Best
Klaus
Re: Editing .livecodescript files
Posted: Thu Sep 21, 2023 1:33 pm
by stam
richmond62 wrote: ↑Thu Sep 21, 2023 1:21 pm
Thanks Klaus.
My main difficulty is how to open a .livecodescript along a filepath using code.
How about something along the lines of
Code: Select all
edit the script of stack (<path_to_stack>)
— Edit: Klaus clearly on form got there before me lol
Re: Editing .livecodescript files
Posted: Thu Sep 21, 2023 2:30 pm
by richmond62
Thanks, both!
