Nautical bell: Difference between revisions

→‎{{header|AppleScript}}: use AppleScript say instead of shell
(→‎{{header|AppleScript}}: use 4 bells for "0" case.)
(→‎{{header|AppleScript}}: use AppleScript say instead of shell)
Line 19:
set pairs to bells div 2
repeat pairs times
dosay shell script"ding dong"say -vusing "Bells 'ding dong'"
end repeat
if (bells mod 2) is 1 then
dosay shell"dong" scriptusing "say -v Bells 'dong'"
end if
end if
1,480

edits