I am developing apps with Unity 3D, and often have several instances of the program open. When I go to debug my scripts, Monodevelop (the script editing and debugger tool) shows me a list of all open Unity applications and their Process Identifiers (PIDs), so that I can choose which one to attach to.
Unfortunately, I often have no idea which PID belongs to the instance of Unity that is running the scripts I wish to debug.
Is there a way to:
- put the PID in the title bar of the application?
- see the PID and text on the window's title bar, in some helper application?
- select an application by PID an bring it to the foreground?
I have tried:
- looking at the applications in System Preferences -- they all show up as Unity (and quitting them one by one is hardly ideal)
ps auxww | grep Unity-- they were launched with the same path and command so I can't tell them apart
- dabbling with AppleScript -- I suspect the answer might lie here, but I find it a very confusing language