Tim wrote:
Is it possible to get all commands on one line so that it is easier to write scripts?
For example, can we use ";" (semicolon) to join multiple lines together, and use "\" (backslash) to join multiple commands on one line? That must make scripting easier, right?
I'm not sure whether you're talking about pasting commands into the editor from a text file (i.e the clipboard), or requesting a change to the editor dialog itself. As you know, the script editor isn't a text editor -- it displays one command per line and edits one command per line in the dialog. This fundamental design probably won't be changed, at least for a long time.
We could provide some improvements, like augment pasting script text from a clipboard into DROD's script editor to support "
;"
and "
\"
characters on a line of text, which would indicate multiple commands or a partial command, respectively, on that line.
But commands wouldn't be pasted from the script editor back to the text clipboard in that form -- they'd be formatted as one command per line, as we have now -- so this seems a minor improvement at best. Multiple commands on one line could be implemented in the script editor too, but would require substantial GUI changes. For instance, when the user double-clicks that line to edit it, then which command on that line would be edited? Would we have to pop up another dialog from which the user would choose which command on that line is to be modified? I'm ambivalent about doing anything like this, but will continue this discussion in the other active request thread about compound expressions.
____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.