"Move" is not executed on a Finder Item

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

"Move" is not executed on a Finder Item Sat Apr 02, 2022 12:50 pm • by Ulli
Hi everybody,
while Hazel normally performs fine, I ran today into a little problem.
To get a scanned file with a Tag into Devonthink3, I added two folder to the Finder.
The first one "Eingangsscan Zwischenablage" (Sorry is german) receives the scans out of my ScanSnap.
The second folder "Eingangsscan an DT3" has a folder action, that moves all files to DT3, oderforms OCR and removes the files from the Finderfolder.
First I made a Hazel rule (can't I upload a screenshot here?):
If all ...are met
Kind is PDF
Do the following...
Add tags "newbates"
Move to folder "Eingangsscan an DT3"


This rule moved the scans to the new folder, however the Tag is missing.
Therefore I modified the rule, removed the "Move"-Part from the Rule, and added a second rule:
If all ...are met
Kind is PDF
Tags contain "newbates"
Do the following...
Move to folder "Eingangsscan an DT3"


This time, the first rule adds the Tag. But the second rule is not going in action.
If I check the file within Hazel with the second rule, it shows a full match, but it is just not executed.

Where is my mistake?
Ulli
 
Posts: 5
Joined: Wed Oct 09, 2019 8:10 am

Re: "Move" is not executed on a Finder Item Sun Apr 03, 2022 7:28 am • by Ulli
For a reason, I don't understand, it is working now with the first version of my Hazel Rule, but I have still no idea, why, or why not at the first approaches...!?
Ulli
 
Posts: 5
Joined: Wed Oct 09, 2019 8:10 am

Re: "Move" is not executed on a Finder Item Mon Apr 04, 2022 9:21 am • by Mr_Noodle
The reason the separate rules are not working is because a file can only match one rule so once it matches the first one, it will never reach the second one.

If you want to split rules like that, you need to use the Continue action on the first rule to tell Hazel to continue evaluating rules if that rule matches.
Mr_Noodle
Site Admin
 
Posts: 11867
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: "Move" is not executed on a Finder Item Mon Apr 04, 2022 12:33 pm • by Ulli
Thank you, this Information was a new one for me!
Ulli
 
Posts: 5
Joined: Wed Oct 09, 2019 8:10 am


Return to Support