Re: "display dialog" time out?
Re: "display dialog" time out?
- Subject: Re: "display dialog" time out?
- From: James Reynolds <email@hidden>
- Date: Thu, 14 Feb 2002 12:28:51 -0700
On 2/14/02 10:05 AM, "James Reynolds" <email@hidden> wrote:
I have an interesting problem. I have a script that is timing out on
this line (which happens to be the first line):
display dialog "text" giving up after 10
The reason it is timing out is because the screen saver is on when
the script launches (script is saved as an application).
Does anyone have any ideas how to get this to not timeout?
I tried:
with timeout of 10 seconds
tell me
display dialog "text" giving up after 10
end tell
end timeout
But I don't think I am doing this right. Or maybe it just isn't working
right?
In both cases, you're specifically _asking_ for it to time out after 10
seconds. If that's not what you want, what exactly do you want?
A "give up" isn't the same as a timeout error though, is it? Maybe
this is changed from Mac OS 9.
In OS 9, I could not catch timeout errors with a "try" block so I
didn't test it putting the code in a try block. I just tried it and
the try block catches it now. Anyway, so that problem is solved. I
don't understand the "with timeout" very well anyway.
Oh, and I noticed an interesting behavior. When the screen saver is
on, the display dialog command makes an alert beep.
I tried this and it seemed like it worked once, but now I can't get it to work:
display dialog "text" with silent
--
Thanks:
James Reynolds
University of Utah
Student Computing Labs
email@hidden
email@hidden
801-585-9811
--
Paul Berkowitz
_______________________________________________
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.
_______________________________________________
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.