Using Command to Display Notification on macOS
macOS has a handy Notification Center. You can write a program to send messages to it, and they’ll appear on screen just like on iOS. But if all you want to do is send a message, you can do it with a single command in Terminal! You don’t need to learn Objective-C or Swift to use macOS’s notification feature. For example, while you wait for tests to run, you might want to make good use of the time by reading some documentation. In that case, you can use Notification to tell you when the tests have finished. You don’t have to worry about getting so absorbed in your reading that you forget the tests are still running, and when they finish, you’ll get a notification right away, so not a moment is wasted! Of course, tests aren’t the only use. Because this Notification works as a command, any program run in Terminal can do the same thing! ...