Rules failing except when using Preview

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

Moderator: Mr_Noodle

Rules failing except when using Preview Tue Aug 05, 2025 11:19 am • by HazelEyes
It appears all my rules for my Downloads folder are failing to automatically run. However, if I go into the rule and do a Preview and select the file, the rule kicks off immediately and works fine.

Log:
Code: Select all
2025-08-04 14:58:35.113 hazelworker[69099] Done processing folder Downloads
2025-08-04 20:00:03.005 hazelworker[79686] Running worker (v6.0.4) for folder with identifier: trash.
2025-08-04 20:00:03.007 hazelworker[79686] ###Arch: arm64
2025-08-04 20:00:03.007 hazelworker[79686] ###main load address: 0x102ce0000
2025-08-04 20:00:03.007 hazelworker[79686] ###Hazel Core load address: 0x102eb0000
2025-08-04 20:00:03.007 hazelworker[79686] ###Noodle load address: 0x1032e8000
2025-08-04 20:00:03.007 hazelworker[79686] ###CK load address: 0x102d98000
2025-08-04 20:00:03.022 hazelworker[79686] Processing folder Trash
2025-08-04 20:00:04.406 hazelworker[79686] Done processing folder Trash
2025-08-05 09:10:10.671 hazelworker[9687] Running worker (v6.0.4) for folder with identifier: 16777234-4136855.
2025-08-05 09:10:10.673 hazelworker[9687] ###Arch: arm64
2025-08-05 09:10:10.673 hazelworker[9687] ###main load address: 0x100a8c000
2025-08-05 09:10:10.673 hazelworker[9687] ###Hazel Core load address: 0x100c5c000
2025-08-05 09:10:10.673 hazelworker[9687] ###Noodle load address: 0x1010bc000
2025-08-05 09:10:10.673 hazelworker[9687] ###CK load address: 0x100b44000
2025-08-05 09:10:10.783 hazelworker[9687] Processing folder Downloads
2025-08-05 09:10:53.176 hazelworker[9687] Could not import text data for file: /Users/peter/Library/Mobile Documents/com~apple~CloudDocs/Downloads/131756_MinnesotaE-ZpassCustomerStatement_20250805043507472.PDF
2025-08-05 09:10:53.177 hazelworker[9687] [Error] Error during rule evaluation: Received error while trying to evaluate rule 457 Plan Statement on file 131756_MinnesotaE-ZpassCustomerStatement_20250805043507472.PDF
2025-08-05 09:10:53.177 hazelworker[9687] Error while matching rule 457 Plan Statement against file /Users/peter/Library/Mobile Documents/com~apple~CloudDocs/Downloads/131756_MinnesotaE-ZpassCustomerStatement_20250805043507472.PDF: Could not import text from /Users/peter/Library/Mobile Documents/com~apple~CloudDocs/Downloads/131756_MinnesotaE-ZpassCustomerStatement_20250805043507472.PDF.
2025-08-05 09:10:53.177 hazelworker[9687] ###Arch: arm64
2025-08-05 09:10:53.177 hazelworker[9687] ###main load address: 0x100a8c000
2025-08-05 09:10:53.177 hazelworker[9687] ###Hazel Core load address: 0x100c5c000
2025-08-05 09:10:53.177 hazelworker[9687] ###Noodle load address: 0x1010bc000
2025-08-05 09:10:53.177 hazelworker[9687] ###CK load address: 0x100b44000
2025-08-05 09:10:53.188 hazelworker[9687] (
   0   CoreFoundation                      0x0000000186526ca0 __exceptionPreprocess + 176
   1   libobjc.A.dylib                     0x0000000185feab90 objc_exception_throw + 88
   2   CoreFoundation                      0x0000000186526b90 +[NSException exceptionWithName:reason:userInfo:] + 0
   3   HazelCore                           0x0000000100caf2b8 _isDateValue + 26792
   4   HazelCore                           0x0000000100caf3a4 _isDateValue + 27028
   5   Foundation                          0x0000000187b167e4 -[NSCustomPredicateOperator performPrimitiveOperationUsingObject:andObject:] + 852
   6   Foundation                          0x0000000187a897d0 -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 320
   7   HazelCore                           0x0000000100ca5820 hazelKindFromUTI + 2744
   8   HazelCore                           0x0000000100ca8ca0 _isDateValue + 656
   9   HazelCore                           0x0000000100ca8e34 _isDateValue + 1060
   10  HazelCore                           0x0000000100ca72b4 hazelKindFromUTI + 9548
   11  HazelCore                           0x0000000100caa828 _isDateValue + 7704
   12  HazelCore                           0x0000000100c88a80 errorFromOSAScriptErrorDict + 64464
   13  hazelworker                         0x0000000100a91160 hazelworker + 20832
   14  hazelworker                         0x0000000100a935cc hazelworker + 30156
   15  hazelworker                         0x0000000100a952e4 hazelworker + 37604
   16  dyld                                0x000000018602ab98 start + 6076
)
2025-08-05 09:11:01.541 hazelworker[9687] Could not import text data for file: /Users/peter/Library/Mobile Documents/com~apple~CloudDocs/Downloads/131756_MinnesotaE-ZpassCustomerStatement_20250805043507472.PDF
2025-08-05 09:11:01.562 hazelworker[9687] [Error] Error during rule evaluation: Received error while trying to evaluate rule 457 Plan Statement on file 131756_MinnesotaE-ZpassCustomerStatement_20250805043507472.PDF
2025-08-05 09:11:01.562 hazelworker[9687] Error while matching rule 457 Plan Statement against file /Users/peter/Library/Mobile Documents/com~apple~CloudDocs/Downloads/131756_MinnesotaE-ZpassCustomerStatement_20250805043507472.PDF: Could not import text from /Users/peter/Library/Mobile Documents/com~apple~CloudDocs/Downloads/131756_MinnesotaE-ZpassCustomerStatement_20250805043507472.PDF.
2025-08-05 09:11:01.562 hazelworker[9687] ###Arch: arm64
2025-08-05 09:11:01.562 hazelworker[9687] ###main load address: 0x100a8c000
2025-08-05 09:11:01.562 hazelworker[9687] ###Hazel Core load address: 0x100c5c000
2025-08-05 09:11:01.562 hazelworker[9687] ###Noodle load address: 0x1010bc000
2025-08-05 09:11:01.562 hazelworker[9687] ###CK load address: 0x100b44000
2025-08-05 09:11:01.562 hazelworker[9687] (
   0   CoreFoundation                      0x0000000186526ca0 __exceptionPreprocess + 176
   1   libobjc.A.dylib                     0x0000000185feab90 objc_exception_throw + 88
   2   CoreFoundation                      0x0000000186526b90 +[NSException exceptionWithName:reason:userInfo:] + 0
   3   HazelCore                           0x0000000100caf2b8 _isDateValue + 26792
   4   HazelCore                           0x0000000100caf3a4 _isDateValue + 27028
   5   Foundation                          0x0000000187b167e4 -[NSCustomPredicateOperator performPrimitiveOperationUsingObject:andObject:] + 852
   6   Foundation                          0x0000000187a897d0 -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 320
   7   HazelCore                           0x0000000100ca5820 hazelKindFromUTI + 2744
   8   HazelCore                           0x0000000100ca8ca0 _isDateValue + 656
   9   HazelCore                           0x0000000100ca8e34 _isDateValue + 1060
   10  HazelCore                           0x0000000100ca72b4 hazelKindFromUTI + 9548
   11  HazelCore                           0x0000000100caa828 _isDateValue + 7704
   12  HazelCore                           0x0000000100c88a80 errorFromOSAScriptErrorDict + 64464
   13  hazelworker                         0x0000000100a91160 hazelworker + 20832
   14  hazelworker                         0x0000000100a935cc hazelworker + 30156
   15  hazelworker                         0x0000000100a952e4 hazelworker + 37604
   16  dyld                                0x000000018602ab98 start + 6076
)
2025-08-05 09:11:03.705 hazelworker[9687] Could not import text data for file: /Users/peter/Library/Mobile Documents/com~apple~CloudDocs/Downloads/131756_MinnesotaE-ZpassCustomerStatement_20250805043507472.PDF
2025-08-05 09:11:03.705 hazelworker[9687] [Error] Error during rule evaluation: Received error while trying to evaluate rule 457 Plan Statement on file 131756_MinnesotaE-ZpassCustomerStatement_20250805043507472.PDF
2025-08-05 09:11:03.705 hazelworker[9687] Error while matching rule 457 Plan Statement against file /Users/peter/Library/Mobile Documents/com~apple~CloudDocs/Downloads/131756_MinnesotaE-ZpassCustomerStatement_20250805043507472.PDF: Could not import text from /Users/peter/Library/Mobile Documents/com~apple~CloudDocs/Downloads/131756_MinnesotaE-ZpassCustomerStatement_20250805043507472.PDF.
2025-08-05 09:11:03.705 hazelworker[9687] ###Arch: arm64
2025-08-05 09:11:03.705 hazelworker[9687] ###main load address: 0x100a8c000
2025-08-05 09:11:03.705 hazelworker[9687] ###Hazel Core load address: 0x100c5c000
2025-08-05 09:11:03.705 hazelworker[9687] ###Noodle load address: 0x1010bc000
2025-08-05 09:11:03.705 hazelworker[9687] ###CK load address: 0x100b44000
2025-08-05 09:11:03.705 hazelworker[9687] (
   0   CoreFoundation                      0x0000000186526ca0 __exceptionPreprocess + 176
   1   libobjc.A.dylib                     0x0000000185feab90 objc_exception_throw + 88
   2   CoreFoundation                      0x0000000186526b90 +[NSException exceptionWithName:reason:userInfo:] + 0
   3   HazelCore                           0x0000000100caf2b8 _isDateValue + 26792
   4   HazelCore                           0x0000000100caf3a4 _isDateValue + 27028
   5   Foundation                          0x0000000187b167e4 -[NSCustomPredicateOperator performPrimitiveOperationUsingObject:andObject:] + 852
   6   Foundation                          0x0000000187a897d0 -[NSComparisonPredicate evaluateWithObject:substitutionVariables:] + 320
   7   HazelCore                           0x0000000100ca5820 hazelKindFromUTI + 2744
   8   HazelCore                           0x0000000100ca8ca0 _isDateValue + 656
   9   HazelCore                           0x0000000100ca8e34 _isDateValue + 1060
   10  HazelCore                           0x0000000100ca72b4 hazelKindFromUTI + 9548
   11  HazelCore                           0x0000000100caa828 _isDateValue + 7704
   12  HazelCore                           0x0000000100c88a80 errorFromOSAScriptErrorDict + 64464
   13  hazelworker                         0x0000000100a91160 hazelworker + 20832
   14  hazelworker                         0x0000000100a935cc hazelworker + 30156
   15  hazelworker                         0x0000000100a952e4 hazelworker + 37604
   16  dyld                                0x000000018602ab98 start + 6076
)


The "457 Plan Statement" rule is the first rule in the list. If I change the first rule in the list, then the log shows that rule instead. So it's always a problem with the first rule in the list (I have 59 rules for this folder).
HazelEyes
 
Posts: 9
Joined: Thu May 27, 2021 9:36 am

Re: Rules failing except when using Preview Wed Aug 06, 2025 8:36 am • by Mr_Noodle
Can you post that rule?
Mr_Noodle
Site Admin
 
Posts: 11998
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Rules failing except when using Preview Wed Aug 06, 2025 9:10 am • by HazelEyes
Mr_Noodle wrote:Can you post that rule?


Here is the 457 Plan Statement rule.

Image
HazelEyes
 
Posts: 9
Joined: Thu May 27, 2021 9:36 am

Re: Rules failing except when using Preview Thu Aug 07, 2025 2:55 pm • by Mr_Noodle
How is the file appearing in that folder? Is it being moved there from elsewhere or is some program saving it out directly to that folder?
Mr_Noodle
Site Admin
 
Posts: 11998
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Rules failing except when using Preview Fri Aug 08, 2025 11:05 am • by HazelEyes
Mr_Noodle wrote:How is the file appearing in that folder? Is it being moved there from elsewhere or is some program saving it out directly to that folder?


They are always saved directly into the folder on the Mac. However, I do often save from my iPhone directly into that folder as well.

I believe I found the problem though. I just tested with that file again (which was originally saved from the iPhone). I tried saving it from the Mac and the rule moved it just fine. I tried saving it again from the iPhone and on the Mac it had a cloud icon with a down arrow denoting that it wasn't downloaded from iCloud yet. As soon as I right-clicked and downloaded it, the Hazel rule kicked off automatically just fine.

So it appears that sometimes my Mac's iCloud connection is slow at updating and Hazel isn't liking that the full downloaded file isn't there.
HazelEyes
 
Posts: 9
Joined: Thu May 27, 2021 9:36 am


Return to Support