Created
July 16, 2009 21:21
-
-
Save dmerrick/148700 to your computer and use it in GitHub Desktop.
This file contains 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
# set up message details for growl | |
if new_balance != old_balance | |
title = "Mint.com Updated" | |
# TODO: Test me! | |
details = "New balance is: #{new_balance} (#{new_balance - old_balance})" | |
else | |
title = "Mint.com Refreshed" | |
details = "Click here for more info." | |
end | |
meep = Meow.new('#$0') | |
meep.notify(title, details) do | |
# this loop makes the script run for a little longer than usual | |
# because it waits for the growl window to close | |
url = 'https://wwws.mint.com/summary.event' | |
`/usr/bin/open #{url}` | |
end # meep block |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment