---
title: 'Quick Tip: system-wide notifications with notifyutil'
date: 2012-07-04 18:40
slug: quick-tip-system-wide-notifications-with-notifyutil
categories:
- Code
tags:
- macos
- quicktip
- scripting
- terminal
---

<img src="/uploads/2012/07/oldtelephonething.jpg" alt="Image of an old-fashioned-looking telephone" title="It&#039;s a telephone" width="241" height="310" class="alignright size-full wp-image-4415" />I just discovered this, thus don't know a lot about it, but `notifyutil` is a pretty cool command line utility in OS X. I know it exists in both Lion and Mountain Lion, not sure how long it's been around before that.

What it does is tap into the system-wide `notifyd` daemon, allowing you to post and receive notifications between multiple applications/scripts. From the [man page](http://www.manpagez.com/man/1/notifyutil/):

> notifyutil is a command-line utility for interacting with the notifyd(8) notification server.  It may be used to post notifications, detect and report notifications, and to examine and set the state value associated with a notification key.
	
For a quick idea what it can do, pop open a terminal and run this:

	notifyutil -1 neato && osascript -e 'say "wow, thats pretty cool"'
	
Then, open another window or tab (or even a different Terminal app) and run:

	notifyutil -p neato
	
Wow, that *is* pretty cool. 

The `-1` in the first command tells it to wait for a single notification. You can set that to any integer, or use `-w` to wait indefinitely. I have some grand scripting ideas for this, but they'll have to wait a bit. Nose to the grindstone, shoulder to the wheel and all of that.

---

Brett is a writer and developer living in Minnesota, USA. You can follow him as ttscoff. This content is supported by readers like you. [More about Brett](https://brettterpstra.com/contact.md), including social links.

Copyright © 2026 Brett Terpstra. All rights reserved.
