OSX Terminal Notifier: Difference between revisions
Jump to navigation
Jump to search
Created page with "{{TOCright}} Excellent third party tool called terminal-notifier, can post alerts and messages to Notification Center directly from the command line. == Install == Assuming ..." |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
Once installed, using the command at it’s most basic core is as follows: | Once installed, using the command at it’s most basic core is as follows: | ||
<pre> | <pre> | ||
$ terminal-notifier -message "Hello, this is my message" -title "Message Title" | $ terminal-notifier -message "Hello, this is my message" -title "Message Title" -sender "com.apple.terminal" | ||
</pre> | </pre> | ||
Please note: The sender is required. | |||
To see help: | |||
<pre> | |||
$ terminal-notifier -help | |||
</pre> | |||
== Alternatives == | |||
A more powerful tool is [[cocoaDialog]]. However installation and usage is more complex. | |||
== See also == | == See also == | ||
Line 24: | Line 32: | ||
<references/> | <references/> | ||
[[Category:Apple]] | |||
[[Category:Index]] | [[Category:Index]] | ||
[[Category:Tools]] | [[Category:Tools]] |
Latest revision as of 18:06, 24 January 2015
Excellent third party tool called terminal-notifier, can post alerts and messages to Notification Center directly from the command line.
Install
Assuming you have ruby on the Mac, you can easily install terminal-notifier using gem:
$ sudo gem install terminal-notifier
Usage
Once installed, using the command at it’s most basic core is as follows:
$ terminal-notifier -message "Hello, this is my message" -title "Message Title" -sender "com.apple.terminal"
Please note: The sender is required.
To see help:
$ terminal-notifier -help
Alternatives
A more powerful tool is cocoaDialog. However installation and usage is more complex.
See also
- OSX-daily, Terminal Notifier.