Thanks highend. I don't know why I didn't in this case, but I do usually combine some upper with the lower case. It does make it much easier to zero in on the name or meaning of the name/variable. The use of the underscore helps as well like, $p_XXX for perms or $g_XXX for globals. I should start doing that.
Concerning the "LikeI", going back to the beginning of the thread, see 1st post, Edit1. Soon after posting PeterH recommended the gettokenindex which I though would be fine as long as you are using case insensitive flag "i". In this particular case though, as far as the comparison of $selext to many extensions, we would need to have something like this (which I've seen on some other posts discussing comparisons):
Code: Select all
if("|txt|nfo|inf|reg|ps1|vbs|" LikeI "*|$selext|*") {load "$txt", , s; end(1)}
Thanks on the further info on not needing triple quotes with the "openwith" even when the path/name has spaces as long as we're dealing with no additional parameters. I would have tried it with single quotes myself.
Thanks SkyFrontier, though it's not much of a script as far as complexity by any means, most importantly, it's getting a lot of use. It takes a few minutes to set it up with all programs you'd like to see come up in the various menus but once it's done, it's done and quite handy.