Re: Poking an Idle Handler
Re: Poking an Idle Handler
- Subject: Re: Poking an Idle Handler
- From: Mr Tea <email@hidden>
- Date: Wed, 15 Sep 2004 00:43:54 +0100
This from Mr Tea - dated 14/9/04 3·18 pm:
> tell application "Tea Timer"
> tell (idle)
> return
> end tell
> end tell
This from Brian Johnson - dated 14/9/04 4·53 pm:
> or (assuming that Tea Timer has a "run" handler and that's what you want
> it to move on to)
>
> tell application "Tea Timer" to run
Implicit, but yes, the 'run' handler is there...
This particular little side project has a global variable called 'cups'
which is initially set to zero at the top of the script and increases in
value each time the code contained in the 'idle' handler runs. The value of
'cups' is checked on each run, and other variables are set accordingly. In
this case, therefore, telling the script to run would, I think, reset the
value of 'cups' to zero, which is not what's required.
Would it be different if I made 'cups' a property instead?
BTW, thanks for the in-depth explanation of what's going on 'under the
hood' with idle handlers, Brian. I read it through carefully several times.
:-)
Nick
pp Mr Tea
--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden