Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to trigger a notification with AppleScript.

I have seen How can I trigger a Notification Center notification from an AppleScript or shell script? but I would like to have a native AppleScript solution if it exists.

share|improve this question

Growl has an AppleScript dictionary. I didn't find any way to show a single notification in Notification Center, but they are shown in it by default you've enabled forwarding all notifications.

tell application id "com.Growl.GrowlHelperApp"
    register as application "Scripts" all notifications "test" default notifications "test"
    notify with name "test" title "title" description "description" application name "Scripts"
end tell
share|improve this answer

See this article on OS X Hints

share|improve this answer
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – patrix Oct 13 '12 at 7:14
While that is true, this entire answer becomes invalid if the Automator workflow being offered is discontinued, so either way it's up in the air. – Corey Edwards Oct 14 '12 at 4:00
Nevertheless add as much as possible. Link-only answers run the risk of getting deleted. – patrix Oct 14 '12 at 6:01
You should quote the relevant portions of the hint in the answer itself. – Jason Salaz Oct 14 '12 at 6:12
The solution is not a native Apple Script solution. It simply executes a shell script – Matteo Oct 14 '12 at 16:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.