OCR text not matching before I open the file in Preview

Dear forum friends,
After many years of usage of Hazel my rules will not run without me “touching” the file one way or another. Since I am sure this is a user problem I re-created my rules about 5-6 month ago but the problem will not go away.
I have a traditional workflow: scan paper invoices with Scansnap -> Scansnap OCR and ,move the file to my ‘action folder’ -> hazel views the file and re-names it according to my desire -> I manually process the file (pay the bill) then change the tag of the file to ‘green’ and it is moved to the right subfolder for long term storage.
The problem I have is that the first step, after the file is moved to the action folder, is that the renaming doesn’t start before I ’touch’ the file, for example by opening it in preview. As you can see in my screen shots below the actual OCR text doesn’t match before I open the file in the native Preview app. Once opened the ORC text matches and the rule executes!
I cannot understand what I do wrong.
The full story:
1. Step: Scansnap moved the file to the action folder:
For reference: the file above the marked file have been processed by the same rule with the steps I describe below.

2. Hazel's log view on it:
3. Hazel’s view status window view of the file:

4. The Hazel’s preview view on the file - with the actual rule and renaming. Please observe that it is the Content Contain that doesn't match:

5. I open the file in the native macOS Catalina Preview app
6. Voila, the file is now renamed:

7. My rule in Hazel now agrees with that the file should be renamed, and the OCR rule / Content Contain now match (but of course then my other rule, to stop the rule from being executed again, kicks in):

8. And this is what the log think of it:
I obviously do something wrong here but don’t understand what. Any help is highly appreciated.
Thank you
Mike
After many years of usage of Hazel my rules will not run without me “touching” the file one way or another. Since I am sure this is a user problem I re-created my rules about 5-6 month ago but the problem will not go away.
I have a traditional workflow: scan paper invoices with Scansnap -> Scansnap OCR and ,move the file to my ‘action folder’ -> hazel views the file and re-names it according to my desire -> I manually process the file (pay the bill) then change the tag of the file to ‘green’ and it is moved to the right subfolder for long term storage.
The problem I have is that the first step, after the file is moved to the action folder, is that the renaming doesn’t start before I ’touch’ the file, for example by opening it in preview. As you can see in my screen shots below the actual OCR text doesn’t match before I open the file in the native Preview app. Once opened the ORC text matches and the rule executes!
I cannot understand what I do wrong.
The full story:
1. Step: Scansnap moved the file to the action folder:
For reference: the file above the marked file have been processed by the same rule with the steps I describe below.

2. Hazel's log view on it:
- Code: Select all
2020-08-25 18:20:50.769 hazelworker[7263] Done processing folder action - MyDrp
2020-08-25 18:21:01.359 hazelworker[7271] Running worker (v4.4.5) for folder with identifier: 16777220-8635835150.
2020-08-25 18:21:01.361 hazelworker[7271] ###main load address: 0x10f25b000
2020-08-25 18:21:01.361 hazelworker[7271] ###Noodle load address: 0x10f378000
2020-08-25 18:21:01.361 hazelworker[7271] ###CK load address: 0x10f33d000
2020-08-25 18:21:01.411 hazelworker[7271] Processing folder action - MyDrp
2020-08-25 18:21:03.633 hazelworker[7271] Done processing folder action - MyDrp
2020-08-25 18:21:15.493 hazelworker[7294] Running worker (v4.4.5) for folder with identifier: 16777220-8635835150.
2020-08-25 18:21:15.495 hazelworker[7294] ###main load address: 0x109827000
2020-08-25 18:21:15.495 hazelworker[7294] ###Noodle load address: 0x109947000
2020-08-25 18:21:15.495 hazelworker[7294] ###CK load address: 0x109909000
2020-08-25 18:21:15.545 hazelworker[7294] Processing folder action - MyDrp
2020-08-25 18:21:17.765 hazelworker[7294] Done processing folder action - MyDrp
2020-08-25 18:21:18.793 hazelworker[7307] Running worker (v4.4.5) for folder with identifier: 16777220-8635835150.
2020-08-25 18:21:18.796 hazelworker[7307] ###main load address: 0x10e534000
2020-08-25 18:21:18.796 hazelworker[7307] ###Noodle load address: 0x10e659000
2020-08-25 18:21:18.796 hazelworker[7307] ###CK load address: 0x10e61b000
2020-08-25 18:21:18.850 hazelworker[7307] Processing folder action - MyDrp
2020-08-25 18:21:20.882 hazelworker[7307] Done processing folder action - MyDrp
2020-08-25 18:21:32.535 hazelworker[7323] Running worker (v4.4.5) for folder with identifier: 16777220-8635835150.
2020-08-25 18:21:32.537 hazelworker[7323] ###main load address: 0x10ae01000
2020-08-25 18:21:32.537 hazelworker[7323] ###Noodle load address: 0x10af20000
2020-08-25 18:21:32.537 hazelworker[7323] ###CK load address: 0x10aee4000
2020-08-25 18:21:32.583 hazelworker[7323] Processing folder action - MyDrp
2020-08-25 18:21:34.801 hazelworker[7323] Done processing folder action - MyDrp
2020-08-25 18:21:43.486 hazelworker[7334] Running worker (v4.4.5) for folder with identifier: 16777220-8635835150.
2020-08-25 18:21:43.488 hazelworker[7334] ###main load address: 0x105c7d000
2020-08-25 18:21:43.488 hazelworker[7334] ###Noodle load address: 0x105d99000
3. Hazel’s view status window view of the file:

4. The Hazel’s preview view on the file - with the actual rule and renaming. Please observe that it is the Content Contain that doesn't match:

5. I open the file in the native macOS Catalina Preview app
6. Voila, the file is now renamed:

7. My rule in Hazel now agrees with that the file should be renamed, and the OCR rule / Content Contain now match (but of course then my other rule, to stop the rule from being executed again, kicks in):

8. And this is what the log think of it:
- Code: Select all
2020-08-25 18:54:43.332 hazelworker[9180] Done processing folder action - MyDrp
2020-08-25 19:01:16.325 hazelworker[9600] Running worker (v4.4.5) for folder with identifier: 16777220-8635835150.
2020-08-25 19:01:16.327 hazelworker[9600] ###main load address: 0x106733000
2020-08-25 19:01:16.327 hazelworker[9600] ###Noodle load address: 0x10684e000
2020-08-25 19:01:16.327 hazelworker[9600] ###CK load address: 0x106817000
2020-08-25 19:01:16.396 hazelworker[9600] Processing folder action - MyDrp
2020-08-25 19:01:18.716 hazelworker[9600] 2020-08-25-18-21-15.pdf: Rule Kjell&Co kvitto -> rename, yellow, acab matched.
2020-08-25 19:01:18.720 hazelworker[9600] [File Event] File renamed: /Users/micke/MikeyMouse/action - MyDrp/2020-08-25-18-21-15.pdf renamed to /Users/micke/MikeyMouse/action - MyDrp/2020-08-19 - kvitto kjell o co.pdf.
2020-08-25 19:01:21.946 hazelworker[9600] Done processing folder action - MyDrp
I obviously do something wrong here but don’t understand what. Any help is highly appreciated.
Thank you
Mike