Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Call idle handler many times - what happens?




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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >Call idle handler many times - what happens? (From: Simon Forster <email@hidden>)
 >Re: Call idle handler many times - what happens? (From: Brian Johnson <email@hidden>)
 >Re: Call idle handler many times - what happens? (From: Simon Forster <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.