Re: spurious timeout on nth Apple event on Snow Leopard
Re: spurious timeout on nth Apple event on Snow Leopard
- Subject: Re: spurious timeout on nth Apple event on Snow Leopard
- From: Matt Neuburg <email@hidden>
- Date: Wed, 07 Oct 2009 09:27:40 -0700
- Thread-topic: spurious timeout on nth Apple event on Snow Leopard
On Wed, 07 Oct 2009 09:56:14 +0100, Simon Topliss <email@hidden>
said:
>I got similar results to Shane.
>
>26313 on the first run, 65535 on the next 3 runs.
Sure, I hypothesize that the counter is absolute, tracking all Apple events
anywhere on the system. So on your first run you got 26313 because 39222
Apple events had already occurred since the last counter reset.
The same thing accounts for what happens when you run several copies of the
script simultaneously. This subverts the purpose of the test; all science
goes right out the window, because now we are no longer counting absolutely
all the Apple events running thru the system. Even as it is the number is
sometimes smaller than 65535 because while you are running the script you
might be doing something else, such as opening a document in the Finder,
that sends an Apple event and thus adds to the count.
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
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