Page 1 of 1

Hazel AppleScript timeout

PostPosted: Tue Nov 13, 2007 8:09 pm
by thecookieman
I have Hazel running an AppleScript on a folder that receives PDF files from a document scanner. The AppleScript launches Adobe Acrobat, runs OCR on the file, saves and closes the document.

The problem I'm having with this is that on long documents (more than 8 pages), Hazel issues a Growl notification that the script failed on the file while Acrobat is still running OCR. All files after the long one fails, unless I restart Acrobat.

My question is: Is there a timeout in Hazel for how long it waits for an AppleScript to complete? If so, is there a way around it?

I'm running Hazel 2.1.1 on a Macbook Pro running Mac OS 10.5

Thanks.

PostPosted: Wed Nov 14, 2007 4:44 pm
by Mr_Noodle
There's no explicitly set timeout though it's possible that there's a default timeout being used. But to make sure it is indeed a timeout, check the logs ("View Log" in the "Info" pane) and see what the actual error is. Since subsequent calls are failing, I wonder if Acrobat threw an error for some other reason.