• 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
Subject: Stupid Question - how to quit a script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Subject: Stupid Question - how to quit a script


  • Subject: Subject: Stupid Question - how to quit a script
  • From: "Donald S. Hall" <email@hidden>
  • Date: Tue, 20 Nov 2001 23:47:22 -0700

You could throw an error number -128 (user cancelled). In other words:

if the answer is yes then error number -128

This is the same message that cancel buttons in dialogs send.

HTH,

Don

>
>
> How would I quit a script in the middle of it should the user choose?
> For example:
>
> script here
>
> display dialog "Stop script and quit now?"
> if answer is yes then
> quit and stop running <-- this is the command I'm looking for
> end if
>
> more script here
>
>
> Thanks so much,
> Landis
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
http://www.theboss.net/appsmore
email@hidden


  • Prev by Date: Re: Entourage: Changing current folder viewed
  • Next by Date: [OS X] Anyone scripted Internet Connect successfully?
  • Previous by thread: RE: Vacation Advice
  • Next by thread: [OS X] Anyone scripted Internet Connect successfully?
  • Index(es):
    • Date
    • Thread