RE: Applescript bugs in Panther
RE: Applescript bugs in Panther
- Subject: RE: Applescript bugs in Panther
- From: Dave MacLachlan <email@hidden>
- Date: Wed, 22 Oct 2003 09:21:13 -0700
However, the timeout is considered an error condition...it's the only
way we have of figuring out things have gone on longer than we expect
them to. For example, if I'm driving a process, and something goes
wrong, I want to be able to abort the process after a given amount of
time.
Cheers,
Dave
>
I have not got Panther yet.
>
>
But it would seem to me that the behavior below is correct.
>
>
IE NO ERROR has occurred.
>
>
Error blocks are for handling errors.
>
>
If you want it to beep, then just use beep.
>
>
The code below should only beep 'on error', not as a standard
>
- non-error condition.
>
>
>
>
>Try
>
> With timeout of 2 seconds
>
> Tell application "Terminal"
>
> Display dialog "What is your name?"
>
> End
>
> End
>
>On error
>
> Beep
>
>End
_______________________________________________
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.