title: How do I list all window titles of running programs in OS X?
body: <p>I know how to list all window titles in Windows, for example using Python <a href="https://sjohannes.wordpress.com/2012/03/23/win32-python-getting-all-window-titles/" rel="nofollow">via the Win32 API</a>. Or eventually I could write it in C/C++ directly.</p>
  
  <p>How do I accomplish this for Mac OS X? It doesn't necessarily have to be in Python, and it doesn't have to be cross-platform. Preferably it would run without requiring any additional downloads (like an applescript file or a bash file using included commands only), but that's not required.</p>