Skip to content

Instantly share code, notes, and snippets.

@dmerrick
Created July 16, 2009 21:21
Show Gist options
  • Save dmerrick/148700 to your computer and use it in GitHub Desktop.
Save dmerrick/148700 to your computer and use it in GitHub Desktop.
# 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