Skip to content

Instantly share code, notes, and snippets.

@johnholbrook
Created July 28, 2013 01:53
Show Gist options
  • Select an option

  • Save johnholbrook/6097027 to your computer and use it in GitHub Desktop.

Select an option

Save johnholbrook/6097027 to your computer and use it in GitHub Desktop.
set bottles to 100
display dialog "ready?" buttons {"yes", "yes"}
repeat 5 times
delay 1
beep
end repeat
repeat until bottles = 0
tell application "System Events"
keystroke (bottles & "bottles of beer on the wall")
keystroke return
end tell
set bottles to bottles - 1
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment