I want to highlight about 8 files, press a button, and have all 8 files fed into a .bat script.
Easy enough with {filepath$}, except there needs to be about a 5 second delay between each selected file being "fed into" the script.
(They cannot go simultaneously because each instance needs to write-then-read its own temporary txt file to a certain directory)
I know I can script this externally, or make the temp txt files each have distinct names, but before I go through this trouble, I just want to make sure noone has come up with any tricky button code I don't know about.
I don't normally program the .bat files at work, but I do know that the original .bat extracts some info from a video file, then calls a second .bat to compress that video. The first .bat's cmd window stays open until the processing (3 hrs of video compression) is complete.
I bet this makes things pretty complicated for DOpus.
I should probably just fix the first .bat to use distinctive tmp files which won't conflict with the tmp files of other instances.
Now if DOpus could run mediainfo.exe and parse text from its cmd window and feed those values into a second bat file, that would solve all sorts of problems!
Fixing the bat files seems like the easier and more reliable thing to do, to me. I would always be weary any time arbitrary delays have to be added to commands to make them work. (e.g. What if things take longer sometimes? everything will probably go haywire.)
Even if Opus could do that, I don't think it would really make it any easier than using the existing scripting languages which can do it already.