Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 05-31-2008, 11:45 AM   #1
shpokas
Prospect
 
Join Date: May 2008
Posts: 9
10.1 how to display dialog box from shell?

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
shpokas is offline   Reply With Quote
Old 05-31-2008, 11:53 AM   #2
shpokas
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.
shpokas is offline   Reply With Quote
Old 05-31-2008, 11:57 AM   #3
cwtnospam
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
cwtnospam is offline   Reply With Quote
Old 05-31-2008, 11:58 AM   #4
hayne
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
hayne is offline   Reply With Quote
Old 05-31-2008, 12:06 PM   #5
shpokas
Prospect
 
Join Date: May 2008
Posts: 9
thanks guys, I will look into this!
shpokas is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 05:59 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.