Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use Mutt. I want a dock icon to launch it. Is such a thing possible?

I'm looking for a way to add a second Terminal icon to the Dock which lets me launch a specific command, "mutt" in this instance.

I want to group this icon with the other app icons, ie I'd rather not drop a .command file into the right-hand "documents" section of the dock.

share|improve this question
    
AFAICT Platypus is not a suitable solution, as it runs scripts (not executables) and displays output in a dialog window (not an interactive console). –  Chris Burgess Mar 22 '11 at 0:10

3 Answers 3

up vote 6 down vote accepted

Open /Applications/Utilities/AppleScript Editor and enter the following:

tell application "Terminal" to do script "mutt"

Save as application anywhere you want, then drag from there to the Dock.


You might need to specify mutt's absolute path. You get that from Terminal by entering

which mutt
share|improve this answer

Use Applescript (or Automator). Fire up Script Editor:

do shell script "mutt"

Save it as an Application, and drop it on your dock as needed. You can set the icon to whatever via the usual way (info pane, paste (cmd-v) in an image after selecting the current icon).

share|improve this answer
    
You don't have a terminal (tty) doing it like this. Mutt assumes non-interactive session and complains that No recipients were specified. –  Daniel Beck Mar 22 '11 at 6:50
    
Ah, fair enough. Seems in my fatigue I didn't bother to try it and see what Mutt did. Good counter-answer –  peelman Mar 22 '11 at 13:07

You could write an AppleScript:

do shell script "mutt"

Save as an Application and drop it on your Dock. You can also change the icon, just copy an image, select your app, go to the info pane (command-i), click on the little icon at the top, and paste your image (command-v).

share|improve this answer
    
whoops - @peelman beat me to it... Didn't notice... –  Simon M Mar 22 '11 at 1:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.