• 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
Using error handlers (was Re: HD name change for X)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using error handlers (was Re: HD name change for X)


  • Subject: Using error handlers (was Re: HD name change for X)
  • From: email@hidden
  • Date: Thu, 17 Jan 2002 22:40:52 EST

Michelle's example brings up something I've been curious about. We've all
used error handlers in interesting ways to achieve our goals, but I've always
thought it to be a bit like cheating (like stealing a Get Out Of Jail Free
card). I do it too, I just don't always feel good about it.

The question I have is, will forcing errors introduce any sort of instability
or bit rot into one's scripts/system? Or can I use such techniques freely
without concern that I might be slowly breaking something under the surface?

Jeff Baumann
email@hidden
www.linkedresources.com


In a message dated 1/17/02 7:46:26 PM, Michelle Steiner wrote:

<snip>

>property diskname : null
>try
> alias diskname
>on error
> set diskname to (choose folder)
>end try


  • Follow-Ups:
    • Re: Using error handlers (was Re: HD name change for X)
      • From: John W Baxter <email@hidden>
    • Re: Using error handlers (was Re: HD name change for X)
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: compactness of expression question
  • Next by Date: Switch iTunes Source
  • Previous by thread: Re: AppleScript 101 - concise paths or always Biblical?
  • Next by thread: Re: Using error handlers (was Re: HD name change for X)
  • Index(es):
    • Date
    • Thread