|
|
#1 |
|
Prospect
Join Date: May 2008
Posts: 9
|
Hi there,
I am quite new to OS X and actually come from Linux world if that matters. I wonder how do I display a dialog box from shell (bash). In Linux I would do that with zenity (Gnome desktop) or kdialog (KDE). Thanks in advance! shpokas |
|
|
|
|
|
#2 |
|
Prospect
Join Date: May 2008
Posts: 9
|
well, I must learn how to search in forums before asking
![]() http://cocoadialog.sourceforge.net/ was the answer. |
|
|
|
|
|
#3 |
|
League Commissioner
Join Date: Jan 2005
Posts: 8,475
|
You could use an Applescript from the shell script:
Code:
#!/bin/bash /usr/bin/osascript <<EOT tell application "Finder" display dialog "It Works!" end tell EOT |
|
|
|
|
|
#4 |
|
Site Admin
Join Date: Jan 2002
Location: Montreal
Posts: 31,937
|
You could do it with AppleScript (which can be called from a shell script - see this Unix FAQ).
Or use Pashua. Also look into using Platypus.
__________________
hayne.net/macosx.html |
|
|
|
|
|
#5 |
|
Prospect
Join Date: May 2008
Posts: 9
|
thanks guys, I will look into this!
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|