RE: run script error
RE: run script error
- Subject: RE: run script error
- From: "Stockly, Ed" <email@hidden>
- Date: Tue, 27 Jan 2009 15:26:41 -0800
- Thread-topic: run script error
>>>This is a part of a script (call it A.scpt). The code works when run by
itself.
>>>However, when invoked from another script via:
>>> run script (alias "A.scpt")
>>>it returns an error:
>>> Finder got an error: Finder got an error: AppleEvent timed out.
Try this:
With timeout of 600 seconds --10 minutes
run script (alias "A.scpt")
end
>>>Does anyone know why it only gives the error when run from another script?
What I think is happening is that the calling script is sending the run
script apple event and then waiting for a result. If it waits more than 2
minutes it generates a timeout error.
When the script is runs by itself ( not called from another script) none of
the apple events reaches the timeout limit, so it works. But when run from
another script, the total time to execute the run script command exceeds the
timeout limit and generates an error.
That said, if it's stalling at the first item in the list, there may be
something else in the script upstream of that which is adding execution
time.
HTH,
ES
_______________________________________________
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