There’s an old saying that “timing is everything.” Although this phrase is usually used when describing one’s life choices, it sometimes applies to AppleScript, too. Controlling the speed and timing of your scripts is essential when automating tasks that
• require a momentary pause, such as while a window opens or a Web page loads; or
• occur over a period of time or at specific times, such as a script that downloads your e-mail at 2 p.m. and 5 p.m. every day.
In this chapter, we’ll examine techniques and strategies for addressing time requirements in scripts.
The most basic form of time manipulation is adding ...