Re: Quit Handler... What Am I Missing Here?
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