What I have learned from terminal-notifier
The terminal-notifier is a cute command-line tool written by alloy that sends User Notifications for OS X systems running 10.8 or later.
There’s not so much code down there, but still I’ve learned a lot, and here’s what I’ve got:
Architecture Overview There are two major parts in this project. To deliver NSUserNotification or respond to user click event, we need a Cocoa App even though there will never be a display window or something.