long question about how to handle timeouts (AS techniques & HIG)
long question about how to handle timeouts (AS techniques & HIG)
- Subject: long question about how to handle timeouts (AS techniques & HIG)
- From: "Steven D. Majewski" <email@hidden>
- Date: Fri, 27 Jun 2003 15:45:31 -0400
This is a combination Applescript-technique and HIG question:
I have an AS application that loads a large number of rather big TIFFs
into
iView MediaPro and does some processing. It takes perhaps 15-20 minutes
to run. Initially testing with a smaller set of data & smaller files,
everything
seemed OK.
One of the user requests was that the script leave something up to
indicate
that processing was complete and that the image catalog was saved in the
correct location. It was expected that in typical operation, the
cataloger
would often either step away from the computer to do another task, or
would
be doing something else on the computer while waiting for the cataloging
to complete.
In testing this in a production environment, I got reports of the
script sometimes
getting a time out error.
I was able to generate a similar error by running a script that
activates another
application and then tries to display a dialog. If I ignore the
bouncing dock icon
for 5 minutes or so, I will eventually get a time out from the script.
I'm guessing that, in the failing cases, someone clicked on the desktop
or another
app before they walked away to cause the timeout error.
I assume that I could prevent this by activating before doing the
dialog, which
would be fine and desirable if the user had walked away, but would
probably be
the WRONG thing to do if the user was checking his email or doing some
other
task at the computer while waiting for the catalog to complete. ( And
for that reason,
I'm pretty sure that sort of behavior is against Apple's HI guidelines.
)
I'm thinking of not doing the activate, but of putting the dialog
request in a try/error
block and catching the timeout and again calling up the dialog, so as
to keep the dock
icon bouncing for attention.
Anyone have any other tips or suggestions for the best way to handle
this problem ?
Thanks,
-- Steve Majewski <email@hidden>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.