User Tools

Site Tools


dictionary:xtension:shedelay

sheDelay (deprecated)

The sheDelay verb still functions at this moment but is deprecated and will be removed in a future version.

Please use the Do Later verb to break up sections of code and execute them one after another after specific delays where necessary.

Distinct from the regular applescript Delay verb. By default this pauses the script and the entire program for the number of ticks you select, but by adding the with async parameter the rest of the program is free to continue.

Usage:

sheDelay (number, the number of ticks to delay for. Ticks are 60th's of a second)

Optional Parameters:

with async
pauses the script but allows the program to continue to process other events and scripts. This is potentially dangerous however, if many scripts stack up in this mode the stack may overflow causing them to error out. A quirk in the way the system handles this if other scripts enter async while an earlier script is still paused they must complete first before control is passed back to the earlier script. This should be used with caution, if you find you need it often you probably should be asking about other ways to accomplish what you're doing.

dictionary/xtension/shedelay.txt · Last modified: 2023/02/13 14:52 by 127.0.0.1