# Create Desktop Notifications From Stata or ... any Apps !!!

The last article introduced how to create desktop notifications from R. In this article, I’ll show you how to create destop notifications from Stata or any other Apps!

Fist we need to know how does notifier work, As for Mac OS, it just loads terminal-notifier. So, let’s first explore the use of this command.

## View help infomation

### sender ID parameter

This parameter is the Bundle ID of APP. So how to find it?

For example, we open RStudio.app, find a file named Info.plist:

You can find these two lines in Info.plist:

org.rstudio.RStudio is RStudio’s Bundle ID. Another example is Stata15 SE:

### sound parameter

We can find it in the system preference setting 👉 sound effects:

These are the parameters that can be used. Default parameter is default (I think the default notice voice is the clearest).

For example:

## Create desktop notifications from Stata

First let’s see where the terminal-notifier command is installed:

Then we can write a Stata command named notifier: