Re: Timed Out
Re: Timed Out
- Subject: Re: Timed Out
- From: email@hidden
- Date: Fri, 2 Oct 2009 11:31:42 +0200
Maybe it has something to do with the random timeout errors present in
10.6? Did you try on 10.5 or 10.6?
Christian
On Sep 27, 2009, at 23:20 , Luther Fuller wrote:
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?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden