Scripting:"Write" cmd seems somewhat misnamed, IMO
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Scripting:"Write" cmd seems somewhat misnamed, IMO
Maybe this should be in another sub-forum, but I'll put it here...cause it's sort of a wish..in that, I think, the new "write" cmd is somewhat misnamed as when I see that, based on other language, I presume that the command will cause output to some file, device or screen, and not present a screen allowing bulk on-the-fly input of commands...maybe it's just me, but...it's my $.02!
So what would be a better name for this function/command?
The first that comes to mind is "Run"...
Or maybe "Execute"...
Something along those lines...
So what would be a better name for this function/command?
The first that comes to mind is "Run"...
Or maybe "Execute"...
Something along those lines...
Last edited by j_c_hallgren on 18 Feb 2008 19:37, edited 1 time in total.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Yes..."inputscript" could possibly work for me...but that's also not quite perfect either, as the other input cmds simply capture a value and assign it to a variable, right? And this is not related to variable value setting!
Hummmm..."promptscript"? Since it asks for one via a prompt...
..."cmdscript"? Since it's somewhat like a command entry...
..."scriptrun"? As it takes a script and then runs it immediately...
Just trying to find the best name...
Hummmm..."promptscript"? Since it asks for one via a prompt...
..."cmdscript"? Since it's somewhat like a command entry...
..."scriptrun"? As it takes a script and then runs it immediately...
Just trying to find the best name...
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
admin
- Site Admin
- Posts: 66296
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
admin wrote:push
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
admin
- Site Admin
- Posts: 66296
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Yes, that's exactly what is happening here. A script is written, then pushed on the stack, then processed, then it pops down.j_c_hallgren wrote:admin wrote:pushAs in a command name "push"? That is what I know only as saving an existing value on a stack, such as a register, variable or set of fields, for later use via a "pop" cmd to restore them, so it wouldn't appear to apply in this context...
You don't like "write", so I suggest the next step: "push"!
Now you suggest "process"...
FAQ | XY News RSS | XY X
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
admin
- Site Admin
- Posts: 66296
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
So "push" is too techie for you, and you are too techie for "write" (because write is an extremely novice-friendly label for a textbox where you can write, right? - but said it makes you think of output to devices! YOU are techie!j_c_hallgren wrote:We all know that sometimes what code on the inside is called and what users know it as are totally unlike for ease of use, so in this case, I think the same concept would apply...I was trying to find a two-word combo that best explains in a bit less techy way what will occur...such as entry+exec as another choice...or direct+exec, etc...yes, scripts are not for the novice, but having a name that makes one think it's doing another function isn't clear even for us tech'rs.
Tell you what: now (0083) we have both!
FAQ | XY News RSS | XY X
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
My issue with "write" was more because I think of it as what the system will do once my request is done, and not what I do...so although I could write in the entry box, I can do the same thing in numerous other places as well, and they aren't known as write, ok?admin wrote:and you are too techie for "write" (because write is an extremely novice-friendly label for a textbox where you can write, right? - but said it makes you think of output to devices!).
That's how I arrived at the combo idea, such as entryexec, as it more fully describes what occurs (we enter, it executes)...maybe a term such as compose would have also worked...anyway, glad that you're willing to listen to us peons!
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
admin
- Site Admin
- Posts: 66296
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
j_c_hallgren wrote:My issue with "write" was more because I think of it as what the system will do once my request is done, and not what I do...so although I could write in the entry box, I can do the same thing in numerous other places as well, and they aren't known as write, ok?admin wrote:and you are too techie for "write" (because write is an extremely novice-friendly label for a textbox where you can write, right? - but said it makes you think of output to devices!).
That's how I arrived at the combo idea, such as entryexec, as it more fully describes what occurs (we enter, it executes)...maybe a term such as compose would have also worked...anyway, glad that you're willing to listen to us peons!
I had another idea in the meantime: "test" or "try", since this is the main use of this command as I see it.
FAQ | XY News RSS | XY X
-
j_c_hallgren
- XY Blog Master
- Posts: 5826
- Joined: 02 Jan 2006 19:34
- Location: So. Chatham MA/Clearwater FL
- Contact:
Well...this is SECOND time I'm having to write this! The forum vanished when I hit submit the first time..admin wrote:I had another idea in the meantime: "test" or "try", since this is the main use of this command as I see it.
Anyway, the other term I thought of was "prototype" which is quite descriptive of what is being done, as "test" implies (to me) more of a debug mode, so "try" is the better one of the two quoted...
The "write" command seems better suited to being saved for later use with custom reports or similar, or some future ability to create output.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
I think the real problem is as it stands Write is more complicated than it should be. (Even though the simplified version seems more complicated).
I think we should really have:
::InputScript(VariableName, [Default]);
-Prompts the user to enter in a script to be stored in VariableName.
-Arguments:
VariableName (Req.) - Variable to store script in.
Default (Opt.) - Default contents of text area.
::DoScript([ScriptVar], [Execute]);
-Executes a script.
-Arguments:
ScriptVar (Opt.) - Variable that contains the script to execute. If omitted, the user is prompted. (If omitted call InputScript).
Execute (Opt.) - |#[#]|[Label], same as Load()'s second parameter.
Really DoScript could be rolled into Load if you wanted and could come up with a good way to signify that the argument is a variable instead of file path.
This also has the advantage of allowing the script to prompt the user for a script and then be able to execute it multiple times. (Not that I can think of a use for this now..)
/me shrugs.
That's my two cents.
I think we should really have:
::InputScript(VariableName, [Default]);
-Prompts the user to enter in a script to be stored in VariableName.
-Arguments:
VariableName (Req.) - Variable to store script in.
Default (Opt.) - Default contents of text area.
::DoScript([ScriptVar], [Execute]);
-Executes a script.
-Arguments:
ScriptVar (Opt.) - Variable that contains the script to execute. If omitted, the user is prompted. (If omitted call InputScript).
Execute (Opt.) - |#[#]|[Label], same as Load()'s second parameter.
Really DoScript could be rolled into Load if you wanted and could come up with a good way to signify that the argument is a variable instead of file path.
This also has the advantage of allowing the script to prompt the user for a script and then be able to execute it multiple times. (Not that I can think of a use for this now..)
/me shrugs.
That's my two cents.
-
admin
- Site Admin
- Posts: 66296
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Yes, I will do something very similar to your suggestion. But I will keep write (or whatever I'll call it) nevertheless.TheQwerty wrote:... [large idea called "That's my two cents."]...
FAQ | XY News RSS | XY X
-
jacky
- XYwiki Master
- Posts: 3106
- Joined: 23 Aug 2005 22:25
- Location: France
- Contact:
Adding my 2cts in here, for fun : I don't think jc's reasoning is any techie, it's also one simple way to look at things, from a user POV:admin wrote:Well, but you must admit that the idea that the "system writes" is a metaphor more techie than the idea that the user writes. Also with "input" it's the user who inputs stuff, not the system.
What will the command do ?
- seltab, will probably select a tab
- inputfolder, will probably input/ask for a folder
- filter, will probably filter someting
- write, will probably write something... or ask me to enter a script to execute, of course
Proud XYplorer Fanatic
-
admin
- Site Admin
- Posts: 66296
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
You are cheating! inputfolder clearly asks the user to input a folder!jacky wrote:Adding my 2cts in here, for fun : I don't think jc's reasoning is any techie, it's also one simple way to look at things, from a user POV:admin wrote:Well, but you must admit that the idea that the "system writes" is a metaphor more techie than the idea that the user writes. Also with "input" it's the user who inputs stuff, not the system.
What will the command do ?
- seltab, will probably select a tab
- inputfolder, will probably input/ask for a folder
- filter, will probably filter someting
- write, will probably write something... or ask me to enter a script to execute, of course![]()
FAQ | XY News RSS | XY X
XYplorer Beta Club