Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to launch a program (Eclipse IDE, in this case), but I want to be able to launch multiple instances of it. I'm running Mac OS X 10.5.

I can add a script to the dock, which does this, but it has 2 drawbacks

  • it opens a console
  • it doesn't have the right icon.

How can I go about this, either fixing those drawbacks or by configuring the application better?

share|improve this question
up vote 2 down vote accepted

You can get info on Eclipse, click on the icon, copy it, get info on your script, click on the icon and paste.

As for your script opening console that sounds like you have a shell script saved as a command file. You can use AppleScript to call a shell script, and then save that AppleScript as an application which you can drop in the dock.

Using pkaeding's command, your entire applescript would be:

do shell script "open -n /Applications/eclipse/"

You can also just open an existing shell script file (.sh) from Applescript which will have the same effect. More here.

share|improve this answer
Thanks, that was enough to get me there. – mike g Nov 8 '09 at 1:35

I'm not sure about a dock icon, but when I need to open two instances of Eclipse, I use the following command in a terminal window:

open -n /Applications/eclipse/

The -n flag says to open a new instance, rather than switch to the currently running one.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .