These are adapted from Ben Browning's blog post for using irssi with growl. I just wanted to use the Apple Notification center or whatever it's called. Fortunately, there's a nice gem that allows you to trigger Apple notifications from the command line. The only trick was that NSApplication
has a screwy way of parsing command-line arguments and so the terminal-notifier
command was failing. I fixed this with a stupid hack of putting an asterisk in front of the message.
I figured I'd post this in case someone runs into the same problem.