• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Error handling?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Error handling?
      • From: Dave C <email@hidden>
References: 
 >Error handling? (From: Dave C <email@hidden>)
 >Re: Error handling? (From: "S. J. Cunningham" <email@hidden>)

  • Prev by Date: Re: Error handling?
  • Next by Date: Script Editor having problems saving files
  • Previous by thread: Re: Error handling?
  • Next by thread: Re: Error handling?
  • Index(es):
    • Date
    • Thread