Re: Call idle handler many times - what happens?
Re: Call idle handler many times - what happens?
- Subject: Re: Call idle handler many times - what happens?
- From: Malcolm Fitzgerald <email@hidden>
- Date: Thu, 9 Jun 2005 10:06:19 +1000
On 09/06/2005, at 3:01 AM, Simon Forster wrote:
Hi Brian, fancy meeting you here ;-)
On 8 Jun 2005, at 16:57, Brian Johnson wrote:
There isn't really a need for the run handler to call the idle
handler. Idle events are generated by the system. If you want to
control how long you wait between them, or respond to being idle
(e.g., by quitting), you write an idle handler. Calling the idle
hander does not make your script idle.
No, I appreciate that. It's just that I'd like the folder action to
kickstart the idle handler to do its do right away, otherwise the idle
handler can tick along in the background.
can't you do it like this?
on run
jobs()
end run
on idle
jobs()
end idle
on jobs()
beep
display dialog "A system beep was detected"
end jobs
Malcolm Fitzgerald ph: 02 93180877
Database Manager fax: 02 93180530
The Australian Society of Authors www.asauthors.org
_______________________________________________
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