• 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: Stopping a scipt in a Try Statment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stopping a scipt in a Try Statment


  • Subject: Re: Stopping a scipt in a Try Statment
  • From: <email@hidden>
  • Date: Sat, 21 Apr 2001 12:24:15 +1200

on 20 Apr 2001 12:43:06 -0700 Greg Strange wrote:
>
>> 'return'
>>
>> or
>>
>> 'error number -128'
>>
>> &, if it's an applet
>>
>> 'tell me to quit'
>
> MMV on this one. Return doesn't seem to reliably exit a statement unless
> it's inside a handler not necessarily inside just a try block. I personally
> use error and then an actual error message. Just using error number -128
> doesn't say anything to me nor does it to anyone running your script.
<snip>
>It seems as if they have some True Master,
>And yet I find no trace of him. He can act, yet I cannot see his form.
>He has identity but no form.

try
load script
on error
error "I am True Master, do it yourself!"
return 128
end try

__ Andy


  • Prev by Date: Re: Targeting an application where there are two versions with the same name
  • Next by Date: Re: open for access help
  • Previous by thread: Re: Stopping a scipt in a Try Statment
  • Next by thread: open for access help
  • Index(es):
    • Date
    • Thread