sleep needs an argument specifying how long to pause:
You can specify fractions of a second with a decimal number:
You can use sleep whenever you need to pause before going on to another script file command.
Here's an example of a small script file using sleep:
dial'loop: dial 555-1212 ; dial remote system if err0 = 0 goto connect ; exit loop when remote answers sleep 30 ; wait 30 seconds before trying again goto dial'loop connect: ; simulate a user typing three carriage returns at human speed! say "^M" ; give carriage return to remote system sleep .5 ; pause briefly say "^M" ; another carriage return sleep .5 ; another pause say "^M" ; third carriage return