I'd like to be able to display a notification window in OS X from within a script. The script will be running in background, so the notification should not go to the terminal but instead be displayed in a dialog window.
What I found so far
On Linux I'd probably use
xmessage or one of its variants for this. But on OS X, starting the bulky X server just for this task seems both overkill and too slow for my taste.
I've found a similar question in this forum thread, where the “accepted” reply suggested this command:
osascript -e 'tell app "Finder" to display dialog "Hey!"'
But on my OS X 10.7, the resulting dialog isn't displayed immediately. Instead, the Finder icon starts to bounce, and the dialog becomes visible only after I click on the icon. Too many mouse clicks, too disruptive.
So is there some tool, either included in OS X 10.7 or freely available, which allows displaying a small dialog to the user without too much overhead?