Home » Questions » Computers [ Ask a new question ]

How can I get an dock icon to launch a program multiple times?

How can I get an dock icon to launch a program multiple times?

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.

Asked by: Guest | Views: 173
Total answers/comments: 1
Guest [Entry]

"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/Eclipse.app""

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