[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] MacPerl not waiting for AS?



At 10:29 +0100 10-12-1999, Dan Gjøske Petersen wrote:
>Later I tested the AS from the Script Editor and it turned out that it
>needed about 80 seconds to collect the stories.
>Could this be the problem? And is there a way to deal with it?

Apple Events have a default time-out of 60 seconds. The way around it 
is to either ignore the response, which is not handy in your case:

	tell application "Eudora Pro"
		ignoring application responses
			connect with checking and sending
		end ignoring
	end tell

or extend the timeout to your own value:

	tell application "Eudora Pro"
		with timeout of 1800 seconds -- a half hour should be plenty!
			connect with checking and sending
		end timeout
	end tell


Hope this helps


Axel Roest

_____________________________
Axel M. Roest                | AXEL Development & Support
info@axel.nu                 | Macintosh developer & UNIX sysadmin
http://www.axel.nu           | 42

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org