How do I bring a processes window to the foreground on OS X?
<p>I have a simple shell/python script that opens up other windows. I'd like to bring the terminal where the script is running to the foreground when the script has finished.</p>

<p>I know the process ID of my parent window. <strong>How can I bring a given window to the foreground?</strong> I imagine I have to find out the window name from the PID along the way. </p>