Issue With Comparing Other Files In Folder

Greetings All.
I have been having great success with Hazel, however after reading many posts on this forum, I still cannot seem to get the following rule to work.
First my folder contains files that exist in pairs. The names are formatted as (DATE_TIME)-(UUID).
Here is an example - these names are copied from the actual Finder (hit Enter on a file and CMD+C the file name).
20190403_104452-CDCB9801-2613-418A-AC60-398FFDF4813A.txt
20190403_104452-CDCB9801-2613-418A-AC60-398FFDF4813A.eml
The rule I am trying to get to work is the following - almost a direct copy of various samples on this forum. It just does not seem to work.
Now the first 2 lines match - so my (Date Field) and my (UUID) fields work fine.
The second (if) works if I am trying to match the (extension) only. So it picks up that there is an eml file in the same folder.
However the minute I add the (name) condition the check fails, hence the second (if) fails.
I have tried variations of this, using a nested condition checking the parent folder then files in the parent folder as others have suggested on these forums and they still fail.
Any suggestions/help are most appreciated.
D
I have been having great success with Hazel, however after reading many posts on this forum, I still cannot seem to get the following rule to work.
First my folder contains files that exist in pairs. The names are formatted as (DATE_TIME)-(UUID).
Here is an example - these names are copied from the actual Finder (hit Enter on a file and CMD+C the file name).
20190403_104452-CDCB9801-2613-418A-AC60-398FFDF4813A.txt
20190403_104452-CDCB9801-2613-418A-AC60-398FFDF4813A.eml
The rule I am trying to get to work is the following - almost a direct copy of various samples on this forum. It just does not seem to work.
- Code: Select all
if (all) of the following conditions are met
(name) (matches) (Date Field)-(UUID)
(extension) (is) txt
if (all) of the following conditions are met for (any file or folder in the same folder)
(name) (matches) (Date Field)-(UUID)
(extension) (is) eml
Now the first 2 lines match - so my (Date Field) and my (UUID) fields work fine.
The second (if) works if I am trying to match the (extension) only. So it picks up that there is an eml file in the same folder.
However the minute I add the (name) condition the check fails, hence the second (if) fails.
I have tried variations of this, using a nested condition checking the parent folder then files in the parent folder as others have suggested on these forums and they still fail.
Any suggestions/help are most appreciated.
D