Differentiate two instances of the same application in the dock I usually have to launch different instances of the same application (in my case of Eclipse).

I launch them from the terminal as follows

nohup /Applications/eclipse/eclipse -data ${workspace} 2&gt;&amp;1 &gt; /dev/null &amp;


where ${workspace} is different for each invocation.

Everything works well but for the fact that I cannot distinguish among instances in the Dock or while switching applications with command+tab.



Is there a way to differentiate them either by changing the application name under the icon or by dynamically changing the icon?
This is a solution for your particular issue, and not OSX apps in general on which I believe do not have this issue. 

Workspace identifiers for Eclipse on OSX