title: Python in OS X: Detect multiple monitors and move application window to specific monitor
body: <p><strong>Question</strong>: Is there a way to have Python detect when running the code in OS X, if there is more than one monitor active? Is it then, possible to move a specific OS X application window to one of those monitors by choosing?</p>
  
  <hr>
  
  <p><em>FYI:</em> I have previously been able to utilize <code>Carbon</code> to activate a specific application window as seen in the code below. I'm not aware if it has the capabilities sought above.</p>
  
  <pre><code>from Carbon import AppleEvents
  from Carbon import AE
  
  window_target = AE.AECreateDesc(AppleEvents.typeApplicationBundleID, "org.mozilla.FireFox")
  window_activate = AE.AECreateAppleEvent('misc', 'actv', window_target, AppleEvents.kAutoGenerateReturnID, AppleEvents.kAnyTransactionID)
  window_activate.AESend(AppleEvents.kAEWaitReply, AppleEvents.kAENormalPriority, AppleEvents.kAEDefaultTimeout)
  </code></pre>