• 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: "S. J. Cunningham" <email@hidden>
  • Date: Sun, 08 Mar 2015 09:47:57 -0400

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


  • Follow-Ups:
    • Re: Error handling?
      • From: Jörgen Stahle <email@hidden>
References: 
 >Error handling? (From: Dave C <email@hidden>)

  • Prev by Date: Error handling?
  • Next by Date: Re: Error handling?
  • Previous by thread: Error handling?
  • Next by thread: Re: Error handling?
  • Index(es):
    • Date
    • Thread