• 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: when quit is not quit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: when quit is not quit


  • Subject: Re: when quit is not quit
  • From: Jon Pugh <email@hidden>
  • Date: Fri, 2 Nov 2001 21:36:38 -0800

At 9:12 PM -0800 11/2/2001, Jon Pugh wrote:
>Try this instead:

Try this instead:

on run
try
errorThrower("test message", -1)
beep
display dialog "No way, eh?"
delay 1
on error m number n
beep
activate
display dialog ("error number " & n & ":" & return & m & return) buttons "Quit" default button "Quit" with icon stop
quit -- forgot this part
end try
end run

Because, in addition to being a message that the applet shell sends to you, it can be used as a command also, directly contradicting my other point, as I realized immediately when I read it.

However, it's not an operation that quits immediately. It just tells the applet shell to quit the next time AppleScript returns, since it is the program calling OSAExecute or whatever and it can't quit until AppleScript returns.

I'll give my harried proof reader a sound lashing though, just on principle.

Jon


References: 
 >when quit is not quit (From: Don and/or Judi Hall <email@hidden>)
 >Re: when quit is not quit (From: Jon Pugh <email@hidden>)

  • Prev by Date: Re: when quit is not quit
  • Next by Date: itunes2 and applescript
  • Previous by thread: Re: when quit is not quit
  • Next by thread: Re: when quit is not quit
  • Index(es):
    • Date
    • Thread