Differentiate two instances of the same application in the dock

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>&1 > /dev/null &

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.

enter image description here

Is there a way to differentiate them either by changing the application name under the icon or by dynamically changing the icon?

Best Answer

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