• 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: Quitting from an idle handle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quitting from an idle handle


  • Subject: Re: Quitting from an idle handle
  • From: Donald Hall <email@hidden>
  • Date: Sun, 7 Aug 2005 23:54:09 -0600

Title: Re: Quitting from an idle handle
Try adding this line after 'tell me to quit':

error -128

This is the "user canceled" error.

Don


At 11:49 PM -0600 2005/08/07, Gil Dawson wrote:
Thanks for the suggestion.

After tinkering with it a bit I realize that I had misdiagnosed my
problem.  My problem is that I have not figured out how to quit a
stay-open script.

Consider the following saved as a stay-open application:

FatalError("Please stop.")

on FatalError(msg)
      display dialog "Fatal Error:" & msg buttons "OK" with icon stop
tell me to quit
error "He didn't quit. "
end FatalError

I am using Smile 2.6.9 and MacOS 10.4.2.  When launched on my machine
by double-clicking its icon, this little script displays the "Fatal
error: "Please stop." dialog, then another dialog with "He didn't
quit".  After that it does nothing, but remains an active process
with an icon in my dock.

I don't want it to remain an active process.  I want it to quit.

How can I get it to quit?

--Gil

--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Quitting from an idle handle
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: [OT] Finder in Tiger: no undo when editing names?
  • Next by Date: Re: Quitting from an idle handle
  • Previous by thread: Re: Finder Info to get real audio media source URL
  • Next by thread: Re: Quitting from an idle handle
  • Index(es):
    • Date
    • Thread