Sequoia update mess-up the my shell script with OwlOCR?

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

Moderator: Mr_Noodle

I updated to Sequoia yesterday. Now my OCR script stop working.

2024-09-19 08:15:47.516 hazelworker[12262] ###Arch: arm64
2024-09-19 08:15:47.516 hazelworker[12262] ###main load address: 0x104a3c000
2024-09-19 08:15:47.516 hazelworker[12262] ###Hazel Core load address: 0x104c0c000
2024-09-19 08:15:47.516 hazelworker[12262] ###Noodle load address: 0x104efc000
2024-09-19 08:15:47.516 hazelworker[12262] ###CK load address: 0x104afc000
2024-09-19 08:15:47.535 hazelworker[12262] Processing folder OCR
2024-09-19 08:15:49.672 hazelworker[12262] 2024-09-17-UnitedSiteServices-186.88.pdf: Rule owlOCR matched.
2024-09-19 08:15:49.811 hazelworker[12262] [Error] Shell script failed: Error processing shell script on file /Users/jose/Documents/OCR/2024-09-17-UnitedSiteServices-186.88.pdf.
2024-09-19 08:15:49.811 hazelworker[12262] Shellscript exited with non-successful status code: 1


Shellscript:
Code: Select all
/Applications/OwlOCR.app/Contents/MacOS/OwlOCR --cli --input $1 --output $1 --force


Any guidance will much appreciated.
nexsim
 
Posts: 7
Joined: Mon Jul 08, 2024 9:43 am

What happens if you run the script outside of Hazel?
Mr_Noodle
Site Admin
 
Posts: 11712
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:What happens if you run the script outside of Hazel?


Sorry I'm not that knowledgeable on this stuff, how can I do that?
nexsim
 
Posts: 7
Joined: Mon Jul 08, 2024 9:43 am

Where did you get the script from?

Also, try turning on debug logging as described here: https://www.noodlesoft.com/kb/hazel-debug-mode/

After that, post the logs.
Mr_Noodle
Site Admin
 
Posts: 11712
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Where did you get the script from?

Also, try turning on debug logging as described here: https://www.noodlesoft.com/kb/hazel-debug-mode/

After that, post the logs.


It think I got directly from https://www.owlocr.com/blog/posts/owlocr-5-command-line-interface

This is the debug log:

2024-09-20 08:49:42.604 86Z3GCJ4MF.com.noodlesoft.HazelHelper[25945] DEBUG: Thread 0x6000022d4100: Run worker for folder: /Users/jose/Documents/OCR
2024-09-20 08:49:42.645 hazelworker[26461] Running worker (v5.3.4) for folder with identifier: 16777234-5654336.
2024-09-20 08:49:42.646 hazelworker[26461] ###Arch: arm64
2024-09-20 08:49:42.646 hazelworker[26461] ###main load address: 0x104cfc000
2024-09-20 08:49:42.646 hazelworker[26461] ###Hazel Core load address: 0x104ecc000
2024-09-20 08:49:42.646 hazelworker[26461] ###Noodle load address: 0x1051bc000
2024-09-20 08:49:42.646 hazelworker[26461] ###CK load address: 0x104dbc000
2024-09-20 08:49:42.655 hazelworker[26461] DEBUG: Program is licensed.
2024-09-20 08:49:42.663 hazelworker[26461] DEBUG: Could not find entry for download in Chrome preference file.
2024-09-20 08:49:42.664 hazelworker[26461] DEBUG: Could not read Mail preferences.
2024-09-20 08:49:42.664 hazelworker[26461] Processing folder OCR (forced)
2024-09-20 08:49:42.664 hazelworker[26461] DEBUG: Pausing to wait for things to settle down.
2024-09-20 08:49:44.739 hazelworker[26461] DEBUG: Processing directories: (
"/Users/jose/Documents/OCR"
)
2024-09-20 08:49:44.743 86Z3GCJ4MF.com.noodlesoft.HazelHelper[25945] DEBUG: Checking events for path /Users/jose/Documents/OCR, folder OCR
2024-09-20 08:49:44.744 hazelworker[26461] DEBUG: Received file event: {
date = "2024-09-20 12:49:42 +0000";
path = "<NoodlePathSet: 0x600002704040>\n /Users/jose/Documents/OCR : 18446744073709551615\n";
}
2024-09-20 08:49:44.745 hazelworker[26461] DEBUG: About to process directory /Users/jose/Documents/OCR
2024-09-20 08:49:44.748 hazelworker[26461] DEBUG: .DS_Store: File is hidden/invisible. Skipping.
2024-09-20 08:49:44.780 hazelworker[26461] 2024-09-17-UnitedSiteServices-186.88.pdf: Rule owlOCR matched.
2024-09-20 08:49:44.780 hazelworker[26461] DEBUG: Manual run. Forcing actions to be executed.
2024-09-20 08:49:44.880 hazelworker[26461] DEBUG: == script output ==
Error Domain=NSCocoaErrorDomain Code=256 "Failed to retrieve app-scope key" UserInfo={NSDebugDescription=Failed to retrieve app-scope key}

== End script output ==
2024-09-20 08:49:44.880 hazelworker[26461] [Error] Shell script failed: Error processing shell script on file /Users/jose/Documents/OCR/2024-09-17-UnitedSiteServices-186.88.pdf.
2024-09-20 08:49:44.880 hazelworker[26461] Shellscript exited with non-successful status code: 1
2024-09-20 08:49:44.880 hazelworker[26461] DEBUG: Tapping error retry sequence
2024-09-20 08:49:44.881 hazelworker[26461] DEBUG: Writing out DB file for /Users/jose/Documents/OCR to path: /Users/jose/Library/Application Support/Hazel/16777234-5654336.hazeldb
2024-09-20 08:49:44.881 hazelworker[26461] DEBUG: Directory /Users/jose/Documents/OCR processed in 0.136474 seconds
2024-09-20 08:49:44.881 86Z3GCJ4MF.com.noodlesoft.HazelHelper[25945] DEBUG: Checking events for path /Users/jose/Documents/OCR, folder OCR
2024-09-20 08:49:44.881 hazelworker[26461] DEBUG: Sending metrics to scheduler. Next scheduled run: 2024-09-20 09:49:44.880
2024-09-20 08:49:44.881 hazelworker[26461] Done processing folder OCR
2024-09-20 08:49:44.883 86Z3GCJ4MF.com.noodlesoft.HazelHelper[25945] DEBUG: Received metrics for folder /Users/jose/Documents/OCR: {
directoryDepth = 0;
requestedSchedulingTime = "2024-09-20 13:49:44 +0000";
triggerPaths = "<NoodlePathSet: 0x6000037b8900>\n";
unavailablePaths = "{(\n)}";
}
2024-09-20 08:49:44.883 86Z3GCJ4MF.com.noodlesoft.HazelHelper[25945] DEBUG: Timer scheduled for folder /Users/jose/Documents/OCR at 2024-09-20 13:49:44 +0000
2024-09-20 08:49:44.883 86Z3GCJ4MF.com.noodlesoft.HazelHelper[25945] DEBUG: Thread 0x6000022d4100: Task removed: [26461]


Thanks so much for helping with this.
nexsim
 
Posts: 7
Joined: Mon Jul 08, 2024 9:43 am

Have you contacted the devs for OwlOCR? This seems to be a sandbox issue. Hazel is not sandboxed but maybe OwlOCR is.
Mr_Noodle
Site Admin
 
Posts: 11712
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support