Preview rule correct but rule when run is not

I have a rule watching a folder of camera images, a mix of jpg and some with matching cr2 raw images. The rule is:
Preview correctly shows the rule failing when jpg has no matching cr2
When the rule runs (the only rule for the folder), all jpg are matched.
The log file says each jpg matches the rule.
Is there something wrong with the sequence of conditions in the rule? If so, why does preview say that the rule is not matched when a corresponding cr2 is found?
- Code: Select all
If all match:
name matches •name
extension is jpg
if all conditions met for enclosing folder
if all conditions met for any subfiles or subfolders
name matches •name
extension is cr2
Preview correctly shows the rule failing when jpg has no matching cr2
When the rule runs (the only rule for the folder), all jpg are matched.
The log file says each jpg matches the rule.
Is there something wrong with the sequence of conditions in the rule? If so, why does preview say that the rule is not matched when a corresponding cr2 is found?