• 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
Error handling?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error handling?


  • Subject: Error handling?
  • From: Dave C <email@hidden>
  • Date: Sat, 07 Mar 2015 23:53:04 -0800

I’m unmounting a volume using the most basic “tell” ever (see below.)

What can I do to handle straightforward errors like if the volume is in use when the script is executed? 

Thanks,
Dave

- - -

tell application "Finder"
eject "Moe"
end tell




 _______________________________________________
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: "S. J. Cunningham" <email@hidden>
  • Prev by Date: Re: delay doesn't work when applet is not frontmost
  • Next by Date: Re: Error handling?
  • Previous by thread: Re: Questions About Bundled Scripts
  • Next by thread: Re: Error handling?
  • Index(es):
    • Date
    • Thread