PeterH wrote:Shouldn't the default for every command be to "wait for completion"?
Well, apart from the command we're talking about here, that launched an app and then continued, I do believe all other commands to wait for completion. I didn't check or anything, but I'm fairly sure delete, backupto, moveto, etc do wait for completion before moving on.
Launching an app was a special case, and so commands open/openwith and run I think might have been the only ones in this situation.
TheQwerty wrote:I'd strongly recommend adding a RunWait function instead.
Yes, if we want to have return codes of course a function would be better, but I don't know if that's doable as easily. Which is why I said that, I felt, if it could be done even without rc, it should.
(I imagine <wait> could also, if a variable, be set to the return code. Of course, a function would still be better.)
--
About the latest beta, pretty cool!

Seems to work fine, but I have to ask about the lack of "waiting window" but allowing one to continue using XY, is this really a good idea ??
For one, user can't abort anything, if somehow something goes wrong XY could maybe end up waiting for something endlessly?
Also, it could allow for many scripts to run at once, and I'm not sure what this could possibly mean, but it sounds bad.
Not to forget, it might be "dangerous" as one script starts an app (e.g. extracting an archive), but in the mean time user might change the current location and whatnot, and then when the script execution continues, it assume it's in the same folder or that settings are still as they should be (cause "setting" was used before launching the app), only meanwhile the user noticed his settings were changed and changed them back manually. So we're saying that after a run&wait, you gotta assume nothing, location might have changed, settings (even set with setting before) might have changed as well, Hell even global vars might have changed from right before you launched the app!!
Because, yes, while the user might (feel like) he can continue to use XY as if the script was done, the thing is his settings might have been changed (since a script is still running), which could lead to unexpected results.
No, I do not like that so much, I have to say. I see no reason not to use a "blocking" waiting window (and at the very leats I'd like an option to use one, if you don't want to "force" it on...). The script needs to wait for execution to be over to continue his work, so one must wait -- hence the window. If you just want to start an app and do something else, don't use the <wait> option! No?