• 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: How to exit ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to exit ?


  • Subject: Re: How to exit ?
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 28 Aug 2001 05:07:11 -0700

On 8/28/01 2:35 AM, Jan Erik Mostrvm <email@hidden> wrote:

>In HyperTalk there was a command "exit to HyperCard" that would allow me
>to jump
>out of any script no matter how deep the call chain was, directly without
>returning to any previous handler.
>
>What is the recommended way of doing this in AppleScript?

Well, the equivalent of "exit to hypercard" would be to exit to the
application under which the script is running, or to the Finder if the
script is an applet or droplet. Therefore, the syntax would be

error number -128

As soon as the script encounters that line it quits.

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re: How to exit ?
      • From: Jan Erik Moström <email@hidden>
  • Prev by Date: Fwd: PLEASE HELP ... Photoshop action scripting
  • Next by Date: Re: How to exit ?
  • Previous by thread: Re: How to exit ?
  • Next by thread: Re: How to exit ?
  • Index(es):
    • Date
    • Thread