Avoiding 'With timeout of...'
Avoiding 'With timeout of...'
Hi,
I've written a script in OS 10.1 (AS 1.8.2) that schedules scans of a harddisk.
the scan is trigger by...
tell app
open xyz as alias
The problems I have are...
The scans can take longer time than 60sec and varies depending on number of files, size and speed of the machine etc. This makes it impossible to calculate an exact timeout value. One solution would be to set a timeout that is longer than needed. However if I do that the script will try to open 'xyz' again after the scan has finished until the timeout has expired.
Is it possible to tell the script to exit the timeout when the first scan has finished.
I have also seen that the scan application returns a gdut event as soon as it receives the open event from the script. This seems to trigger the script to do a second scan. Is there anyway I can tell the script to perform a certain action when receiving the gdut even.
/pontus
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
_______________________________________________
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.