How to delay your AppleScript

Posted in AppleScript on January 02, 2017 · 1 min read
In AppleScript if you have a handler that runs awhile how can you slow it down?

If you have an AppleScript that is running too fast and you would like to make sure that a particular area in your code has enough time to run before moving on to a new handler or area in your script you can deploy a delay.

So for example take a display dialog command with a delay:

display dialog "foo"
delay 5
display dialog "bar"
Help the site go ad free:
Storm Trooper