Re: Stopping a script in a Try Statement
Re: Stopping a script in a Try Statement
- Subject: Re: Stopping a script in a Try Statement
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 19 Apr 2001 22:24:59 -0700
On 4/19/01 8:17 PM, "Barton Chew" <email@hidden> wrote:
>
I am writing a Start Up Items script that attempts to select a file on the
>
desktop, renames the file and places it into a folder on the hard drive. If
>
the file does not exist, I use a Try Statement to catch the error and exit
>
the script.
>
>
The problem is, I can not figure out how to stop the script. Is there a
>
command for this?
>
return
(or, if you're in a handler, which would just put you back to the main
script,
error number -128
which cancels the script - but don't put it in the 'try' part, rather in the
'on error' part of the try/error block).
--
Paul Berkowitz