Skip to content

Instantly share code, notes, and snippets.

@dpetersen
Created September 30, 2008 02:58
Show Gist options
  • Save dpetersen/13731 to your computer and use it in GitHub Desktop.
Save dpetersen/13731 to your computer and use it in GitHub Desktop.
#!/bin/bash
NUMBER=`curl "http://www.mail-archive.com/ctrl@listserv.aol.com/msg30901.html" | grep -i "span" | wc -l`
echo $NUMBER
if [ $NUMBER -gt 0 ] ; then
osascript -e 'tell application "Finder"' -e 'activate' -e 'display dialog "Yo Dog!"' -e 'end tell'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment