Terminal Notifier

From air
Jump to navigation Jump to search

terminal-notifier is a command-line tool to send Mac OS X User Notifications, which are available in Mac OS X 10.8 and higher.


sudo gem install terminal-notifier
echo 'Piped Message Data!' | terminal-notifier -sound default
terminal-notifier -title 'Money' -message 'Check your Apple stock' -open 'http://finance.yahoo.com/q?s=AAPL'

With Node.js

Node.js wrapper : https://github.com/mikaelbr/node-notifier

npm install node-notifier
node terminal-notifier-example.js
var notifier = require('node-notifier');

    title: 'My application',
    message: 'New notification'
}, function(error, response) {