Re: Error handling?
Re: Error handling?
- Subject: Re: Error handling?
- From: Jörgen Stahle <email@hidden>
- Date: Sun, 08 Mar 2015 14:46:55 +0000
- Thread-topic: Error handling?
I think the problem the OP refers to is that the error is shown in a system dialog, not returned back to the script.
.......................
Jörgen Stahle (mobil)
> 8 mar 2015 kl. 14:48 skrev S. J. Cunningham <email@hidden>:
>
>
>> On Mar 8, 2015, at 3:53 AM, Dave C wrote:
>>
>> tell application "Finder"
>> eject "Moe"
>> end tell
>
> try
> tell application "Finder"
> eject "Moe"
> end tell
> on error errMsg number errNum
> if errNum = straigthforwardErrorNumber then
> return
> else
> display dialog "Non- Straightforward Error " & errNmu & ": " & errMsg
> end if
> end try
>
> _______________________________________________
> 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
_______________________________________________
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