Selecting a Line in the Script Editor Window
Richmond
richmondmathewson at gmail.com
Tue Apr 21 16:01:51 EDT 2015
On 21/04/15 22:23, Ray wrote:
> Does anybody no of a way to select a line in the script editor window?
>
> This doesn't work:
> edit script of this stack
> set the hilitedLine of fld "Script" of stack "RevNewScriptEdtor 1"
> to 542
>
> Ideally this will also scroll to the selected line.
>
> Many thanks for any ideas on this!
>
Well, that is a bit self-referential, almost incestuous.
What you might like to try is loading the script into a textField,
mucking around
with it there, and then popping it back into the script.
Demo stack here:
https://www.dropbox.com/sh/ja47l87gg87sn0q/AAAIj99kEQVOb8ev3jz8C5ORa?dl=0
file "SH.zip"
this does NOT select a line, but what it DOES DO is edit a script
script-wise: you should
not really have any problems working onwards from there.
really very straightforward :)
Richmond.
More information about the use-livecode
mailing list