Idle Interval 1.1

Frequently Asked Questions
Idle Interval Scripting Addition

Q: How much does it cost?
A: The Idle Interval scripting addition costs you absolutely nothing to download and use. You may install it on any number of computers running Mac OS X 10.3.9 or higher.

Q: Can I give a copy to my friends?
A: Yes, you may reproduce and redistribute the Idle Interval scripting addition, and include it in your own product, as long as the scripting addition is not modified, including the copyright.

Q: How do I try out the Idle Interval scripting addition?
A: Go to the Getting Started page.

Q: How many timing-options objects can each application contain?
A: There can be only one.

Q: How do I tell the script to call my idle handler once in a while, at specific times?
A: Set the idle interval of timing options to zero to disable repeating idle calls. Then set the next idle interval of timing options to the desired value.

Q: What happens if I install the scripting addition without using its features?
A: The scripting addition should not affect the behavior of applications not built with AppleScript Studio, except to load its scripting dictionary if requested, for example, when you open the dictionary in Script Editor. The scripting addition will load into every application built with AppleScript Studio, thereby using a small portion of memory space, but should not affect the behavior until someone modifies a property of the timing options.

Q: Is the idle interval always the exact reciprocal of the idle frequency?
A: Usually, but not always. When the idle interval is zero, the idle frequency is zero, too. This allows you to use either property as if it was a boolean to enable and disable idle handling. Also, there may be small rounding errors in the arithmetic. If you set either property to zero, it disables idle handling, and AppleScript will not call your idle handler. If you set either property to a value greater than zero, it enables idle handling, and AppleScript will call your idle handler accordingly.

Q: What if I want AppleScript never to call my idle handler?
A: You can always delete it from your script, or comment it out. But seriously... if you have an idle handler AppleScript will call it at least once if you do nothing. To prevent even one call to your idle handler, then your script must contain either the will become active or activated handlers. In either handler set idle interval of timing options to 0.

Q: Why can't I use this on 10.2 any more?
A: Mac OS X 10.3.9 is the earliest version that supports Universal Binaries.

           <----- BACK: Techniques                                            NEXT: Compatibility ----->

© 2004-2007 Stuart B. Russell. All Rights Reserved.
Trademarked terms are the property of their respective owners.