I'm frequently opening multiple instances of applications, especially Emacs, since I may be working on different projects on the same time, and I find this the best way to manage this (yes, I know there are lots of project management extensions for Emacs, I don't need to be taught in Emacs).
I'm doing this with
open -n -a Emacs.app which opens a new separate Emacs instance. But it would be really nice to set a custom dock icon for the opened instances, so I can easily differentiate them when doing Cmd+Tab.
Do you know any hack or way to set a custom Application (Dock) icon for a instance? Even if it is a rather complex shell command (I could then create a shellscript for this).
What I really want to achieve is to create a shellscript for this so I can call
opennew Emacs.app x and then it would fork the Emacs icon and add a badge with an x in it.
Then I can call
opennew Emacs.app s for "school related",
opennew Emacs.app p for "project related" etc.