terminal-notifier is a command-line tool to send OS X User Notifications, which are available in OS X 10.8 and later.
- The message data can now also be specified by piping data to the tool.
- Post notification as a different application with the sender option. This also uses that application’s icon.
- Play a sound when posting a notification with the sound option. Use default or any of the sounds you can find in the System Preferences as the option value.
- Unescape first