Newbie Questions: Differences between idle handlers and other type of handlers?
Newbie Questions: Differences between idle handlers and other type of handlers?
- Subject: Newbie Questions: Differences between idle handlers and other type of handlers?
- From: Simon Brown <email@hidden>
- Date: Mon, 24 Feb 2003 13:08:42 +0000
I'm experiencing a few differences in the execution of commands within idle
handlers compared to the same sets of commands written in normal
user-defined handlers. Specifially, calls to quickeys backgrounder execute
much more slowly, or rather they execute normally, but quickeys backgrounder
doesn't return control to the script for a long time (after completing
execution), sometimes causing timeouts.
Return statements whose value would normally cause the app to invoke its
quit() handler don't behave the same within an idle handler - the script
performs the commands in the idle handler up to the "continue quit" command
but then returns to the line after the return statement and continues
execution.
I got round that by raising an error to invoke the quit handler which does
make the (stay-open) script app stop executing, but leaves the icon for the
script in the application menu (and in the list of processes) until I next
click on its icon in the application menu.
Any explanation or help much appreciated. I'm sure I've also seen some other
subtle differences in execution within idle handlers as oppossed to other
handlers that I can't remember well enough to describe here. Just hoping
that someone has some knowledge to share on the subject.
--
Simon
--------------
p.s. I've also posted a question on error numbers which deals in part with
the same issue. Please respond wherever you think most appropriate.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.