##Installation
Pkg.add("OSXNotifier")
##Usage
using OSXNotifier
notify("Task completed")
notify("Notification with sound", sound=true) # you can also specify a sound file
Other supported parameters include group
and subtitle
.
You can also remove notifications. However, this does not seem to work reliably.
OSXNotifier.remove() # removes all notifications
To remove specific notifications, you need to specify a group identifier when calling notify
. This identifier can then be passed to remove()
.
notify("Notification A", group="group1")
notify("Notification B", group="group2")
OSXNotifier.remove("group1")