View Single Post
Old 29th May 2008, 18:40   #3 (permalink)
hanzo
Senior Member

 
hanzo's Avatar
 
Join Date: Sep 2007
Location: Abu Dhabi
Posts: 181
hanzo is on a distinguished road
Sorry I missed this one, haven't been around lately.

This is a pretty easy one:

osascript doesn't have a GUI to interact with, so you need to tell something with a GUI to display the dialog.

In this case, Finder would be the way to go.

Here is what you want:

osascript -e 'tell application "Finder" to display dialog "hi"'
hanzo is offline   Reply With Quote