Editing .livecodescript files
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Editing .livecodescript files
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 . . .
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
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
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
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Editing .livecodescript files
Thanks Klaus.
My main difficulty is how to open a .livecodescript along a filepath using code.
My main difficulty is how to open a .livecodescript along a filepath using code.
Re: Editing .livecodescript files
Hi Richmond,
don't try to "open" or "go" to that stack, just script this:
Tested and works.
Best
Klaus
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"
Best
Klaus
Re: Editing .livecodescript files
How about something along the lines ofrichmond62 wrote: ↑Thu Sep 21, 2023 1:21 pmThanks Klaus.
My main difficulty is how to open a .livecodescript along a filepath using code.
Code: Select all
edit the script of stack (<path_to_stack>)
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria