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 launched firefox from the Terminal with some command line arguments. It appears in the doc and now I want to change the icon from the firefox icon to something else and keep it in the dock. How do I do that?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

You need to make a simple application that calls Firefox with the desired arguments. The simplest way to do this is to create an application running a shell script in Automator. The shell script should call your program with arguments, like this:

/Applications/Firefox.app/Contents/MacOS/firefox-bin -ProfileManager &

enter image description here

Save it as an application (not workflow) where you like. You can then change the application icon using Finder. Cmd+I on the application, click on the thumbnail, Cmd+V to paste your custom icon.

Then drag the newly created executable to the Dock.

share|improve this answer
    
Wouldn't this "launcher" quit immediately? Also, application icons work differently from document icons, I don't think the copy/paste in Get Info works. –  Daniel Beck May 12 '13 at 10:13
    
Copy/paste works for sure, I've tried it. The launcher quits immediately, but it's still a nice solution for launching applications from the Dock. –  pietrodn May 12 '13 at 10:19
add comment

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.