Re: timeout block question (Axel Luttgens)
Re: timeout block question (Axel Luttgens)
- Subject: Re: timeout block question (Axel Luttgens)
- From: Jim Brandt <email@hidden>
- Date: Wed, 18 Mar 2009 19:06:56 -0500
Axel,
I'll give you a summary: it's a complex script.
Most of the commands are entered via GUI scripting.
1) I'm trying to log into Fidelity's page. It's a secure location.
2) after logging in, I select my portfolio page
3) after navigating to that page, I switch page settings to landscape
mode
4) I then select a format for print option, which opens a new window.
5) in the print dialog, I select "Preview" and wait for Preview.app
to open the page
6) I select the save option, entering a page name with the date as
part of the name
7) after the save, I quit Preview and log out of Fidelity's page.
Because this script has hung so many times, I log key spots in a log
file.
Most of the time it has hung during the opening of the page that is
formatted
for print. I have added extra delays at this point. It still hangs
about once a week.
On Mar 18, 2009, at 2:01 PM, applescript-users-
email@hidden wrote:
Hello Jim,
The "with timeout" relates to the time needed for a reply to come back
from an application (say, the Finder) invoked from a "tell
application..." statement; it doesn't apply to AppleScript statements.
Here, it seems you are staying in AppleScript.
Perhaps would it be possible to handle the timeout in myscript.scpt?
Could you tell us a bit more about that script?
HTH,
Axel
_______________________________________________
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