Oh no I don't, I know it's ugly, and I can't wait to stop this and use standard if...else... statements, my point wasn't there's this hack so other stuff can be done, though I do factor that in it's true, but that the next step in scripting will require major work/changes, because, I think, it might not how XY scripting has been thought at first.TheQwerty wrote:You may love doing RegExReplaces instead of simple if...else... but it is a royal pain, it is sloppy, and it's not at all something the majority of users can use. I also never called it "illegal" but it is a cheap and ugly hack.
Not to say this shouldn't be done or delayed over & over, again I'm really waiting for this scripting 3.0, but I also know that Don has many things he wants to do, and many aren't related to scripting at all. All of that as well as time should be factored in, and given how there's been lots of scripting stuff recently already I would see Don willing to focus on "other things", and I'm just saying I don't think just because if/else/etc aren't supported, onEvent actions should be delayed.
I just don't think it requires "better" scripting support to be an interesting feature already. (Also, I'm not sure why onEvent interface would be complicated : new section on Config, a list of events and corresponding actions.)
Of course people are waiting to loop over the current selection (which can already "easily" be done...
I can be excited about a new feature which doesn't relate to scripting, without it meaning I want to delay and judge less important coming scripting changes. Just because people were excited about FVS didn't mean they thought conditions/loops weren't important or could be sent to scripting 5.0, or that scripting should be usable everywhere it could already be.
"My way" doesn't mean everyone needs to use this ugly regexp hack, you can wait for the new scripting syntax of course, and I'm not saying just because there's a way around it it's not important, I'm just saying I don't believe the lack of such support should be used to "delay" other features when they don't depend on it.
Because I do not see onEvent as a new scripting 3.0 and thus delaying conditions/loops/etc, it's not a scripting thing, I see that as a completely new & independent feature. One I might be more eager to get than scripting 3.0, yes, but that's all.
XYplorer Beta Club
