Skip to content

Instantly share code, notes, and snippets.

@wfarr
Created March 20, 2011 22:45
Show Gist options
  • Save wfarr/878760 to your computer and use it in GitHub Desktop.
Save wfarr/878760 to your computer and use it in GitHub Desktop.
tell application "Terminal"
try
do shell script "say 'hamburgers'"
on error
do shell script "echo 'Uh-Oh!'"
end try
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment