Find files for which there is no flag-file

Hi.. o)

I need help with a find operation, if this is possible at all..

Image you have a different files in a folder.

abcdefg1.xml
abcdefg2.xml
abcdefg3.xml
abcdefg4.xml

(here it's several hundreds of files..)

Now i need to find all those xml-files which have no counterpart,
their flag-file with the same name, but different extension (*.imp).

So from this file list:

abcdefg1.xml
abcdefg1.imp

abcdefg2.xml
abcdefg2.imp

abcdefg3.xml

abcdefg4.xml

I want to "find" abcdefg4.xml and abcdefg3.xml.

Can that be done somehow ?! Thank you in advance, regards..
Rob.

I think this command will do it:

Select TYPE=files *.imp DESELECTNOMATCH Select TYPE=files {file|noext}.* Select TYPE=files INVERT

Leo.. this is unbelievable!.. o)

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.

  1. You select all *.imp files
  2. 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 ?!)
  3. 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)

regards,
rob.

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.