I have an application, we'll call it "BigStuff", whose /Contents/Resources/ folder contains the application bundle "Helper". The script of "Helper" is ...
on run tell application "Finder" to set hostAppl to (container of container of container of (path to me)) as text try launch application hostAppl tell application hostAppl to nameOfHandlerInBigStuff() on error errText number errNr activate me if errNr = -128 then return "Helper Error = " & errNr & return & errText tell me to display dialog the result buttons {"OK"} default button 1 end try end run -----------------------------
The handler nameOfHandlerInBigStuff was running very nicely doing its business with lots of data when I got a dialog telling me that I had a -1712 error, "BigStuff has timed out.". I clicked "OK" and nameOfHandlerInBigStuff continued running correctly. So I changed the "Helper" script to ...
on run tell application "Finder" to set hostAppl to (container of container of container of (path to me)) as text ignoring application responses try launch application hostAppl tell application hostAppl to nameOfHandlerInBigStuff() on error errText number errNr activate me if errNr = -128 then return "Helper Error = " & errNr & return & errText tell me to display dialog the result buttons {"OK"} default button 1 end try end ignoring end run -----------------------------
Problem fixed! But, why should I get a Timed Out error?
|