At first, your 3 lines did not work for me, my testfiles did contain
brackets "(" and ")". But no problem, the filenames to which this
command will be applied, have no special characters.
You select all *.imp files
You select all the files, which have the same name, but diff. extension,
at the same time, the *.imp files get deselected (what leads to the deselected imp-files here ?!)
You invert the selection (if i leave out the 3rd select statement, all
*.xml files are selected, but the ones I am looking for. A simple "Select
INVERT" should select the looked for xmls and all imps.. ?! But no, only
the xmls are selected, to which there is no imp-file.
I must admit, i just don't get these dopus commands.. what I also do
not understand here, is that the first command is to be applied to ALL
files at once, while the 2nd seems to be applied one by one and the
3rd again to all again ?!
Man, if you take the time to explain this to me or not, I am thankful
though! But i really like to understand eventually - one day!.. o)
I kind of code stuff everyday, scripts and makros.. but this kind, my
brain is just not capable it seems.. ?!. o)
The middle line will be run once per selected file (after the first line has modified the selection). {file} inserts a single filename into the line and when there are multiple files Opus will run the line once for each file.
(On the other hand, {allfile} would insert all of the filenames, one after the other, into the line and the line would only be run once.)
Also, the middle line does not deselect anything. If you were experimenting by removing lines and saw that the *.imp files were deselected then that was due to Opus being set to deselect files after the buttons finish (which is the default I think), rather than something the middle line did.