Using the Automator action from this recent hint, it is easy to post notifications from AppleScripts or the command line.
To set this up, simply do the following:
- Download and install the action.
- Create a new workflow in Automator containing only the Display Notification Center Alert action.
- In the variables section at the bottom of the workflow construction area in Automator’s window, create three variables named
messagea default value like “Notification sent.” You can leave the default values other two blank.
- Drag each variable to its corresponding field in the Display Notification Center Alert action.
- Save the workflow as Display Notification.wflow. A good place to save it is in ~/Library/Workflows (create the folder if necessary).
via MacOSXHints.com http://feeds.macosxhints.com/click.phdo?i=1c7c64c8facb732604e8772a46560402