• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Call idle handler many times - what happens?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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>)

  • Prev by Date: Re: Folder action in download folder...
  • Next by Date: Re: OT: Re: Shit - it's all true
  • Previous by thread: Re: Call idle handler many times - what happens?
  • Next by thread: Folder action in download folder...
  • Index(es):
    • Date
    • Thread