Don't understand delay action
Don't understand delay action
- Subject: Don't understand delay action
- From: Robert Poland <email@hidden>
- Date: Tue, 10 Mar 2015 09:11:38 -0600
- Z-usanet-msgid: XID896TcJPLM8992X34
Randy,
The script, below, seems weird to me.
1. How come the delay command uses the handler?
2, How come the handler works without the normal parentheses?
3. Could I add the handler to all scripts that use the delay command?
4. Would the command “Delay” also call the handler?
# script
on delay delayTime
set theRepeat to delayTime * 10 div 1
repeat theRepeat times
do shell script "sleep 0.1"
end repeat
end delay
beep
delay 2
beep
#/script
Tia,
Robert Poland
Fort Collins CO
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden