• 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: Quit Handler... What Am I Missing Here?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quit Handler... What Am I Missing Here?


  • Subject: Re: Quit Handler... What Am I Missing Here?
  • From: "S. J. Cunningham" <email@hidden>
  • Date: Fri, 13 May 2011 16:57:48 -0400

> Le 12 mai 2011 à 14:06, S. J. Cunningham a écrit :
>
>> Forgive the top post, but I am apparently still not asking my question clearly.  Let me try again :-)
>>
>> I have a script compiled as an application which runs in an infinite loop, checking a website for changes every so often (Woot during a Woot-Off, if you must know).  Like a total noob, I assumed that if I selected "Quit" from the running script's application menu, it would execute the quit handler and, well, quit.  It doesn't.  The only way I can quit the application is to Force Quit it and that leaves files open that the quit handler was supposed to clean up.  This seems like a bug to me.
>
> Right, the quit handler will be executed, but your script has still a lot to achieve, because of the infinite loop.
>
> That is, the script will resume at the point it was in the loop and the application won't quit.

 "When I use a word," Humpty Dumpty said in rather a scornful tone. "It means just what I choose it to mean - neither more or less."
    "The question is," said Alice, "whether you can make words mean so many different things."
    "The question is," said Humpty Dumpty, "which is to be master - that's all."

I'm sorry, but this just seems to be really bizarre behavior for something labeled "quit".  I guess it's just me :-)  I shudder to think what "continue" might mean :-)

Might be an interesting defense:

Prosecutor: "She said 'quit!' "
Defendant: "Yes, but I wasn't done." _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Quit Handler... What Am I Missing Here?
      • From: Deivy Petrescu <email@hidden>
    • Re: Quit Handler... What Am I Missing Here?
      • From: Axel Luttgens <email@hidden>
References: 
 >Re: Quit Handler... What Am I Missing Here? (From: Nigel Garvey <email@hidden>)
 >Re: Quit Handler... What Am I Missing Here? (From: "S. J. Cunningham" <email@hidden>)
 >Re: Quit Handler... What Am I Missing Here? (From: Axel Luttgens <email@hidden>)

  • Prev by Date: A Note on the Quit Handler
  • Next by Date: Re: Quit Handler... What Am I Missing Here?
  • Previous by thread: Re: Quit Handler... What Am I Missing Here?
  • Next by thread: Re: Quit Handler... What Am I Missing Here?
  • Index(es):
    • Date
    • Thread