Created
November 30, 2009 18:15
-
-
Save skabber/245606 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/Users/jgraves/environments/python/bin/python | |
import time | |
import sys | |
import Growl | |
try: | |
minutes = float(sys.argv[1]) | |
except IndexError: | |
print "How many minutes?" | |
sys.exit() | |
time.sleep(60 * minutes) | |
notifier = Growl.GrowlNotifier('Tea Timer', ['ntf1']) | |
notifier.register() | |
notifier.notify('ntf1', 'Tea Timer', 'It\'s tea time!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment