2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
15
Task/Nautical-bell/AppleScript/nautical-bell.applescript
Normal file
15
Task/Nautical-bell/AppleScript/nautical-bell.applescript
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
repeat
|
||||
set {hours:h, minutes:m} to (current date)
|
||||
if {0, 30} contains m then
|
||||
set bells to (h mod 4) * 2 + (m div 30)
|
||||
if bells is 0 then set bells to 4
|
||||
set pairs to bells div 2
|
||||
repeat pairs times
|
||||
say "ding dong" using "Bells"
|
||||
end repeat
|
||||
if (bells mod 2) is 1 then
|
||||
say "dong" using "Bells"
|
||||
end if
|
||||
end if
|
||||
delay 60
|
||||
end repeat
|
||||
Loading…
Add table
Add a link
Reference in a new issue