title: Is there a way to Open a QuickTime movie to a specific display in AppleScript?
body: <p>Been searching around and there are a few discussions about displays in Apple Script - but, I couldn't find one that answered what I'm trying to do.</p>
  <p>I have a script that is meant to play video's that are &quot;beeped&quot; with a barcode scanner - I have it all working... but, the problem I'm having is that when I open the QuickTime movie - it goes to the menu bar display... the &quot;main&quot; display.</p>
  <p>What I want is to be able to open the movie - but specify that I want it to go to Display 2... the secondary display in the script.</p>
  <p>Is there a way to do this?</p>
  <p>This is what I'm doing to get the file open.... hfspath is the variable I'm using to hold the filepath to the movie.</p>
  <p>tell application &quot;QuickTime Player&quot;</p>
  <pre><code>        set thedoc to open hfspath
          tell thedoc to present
          tell thedoc to play
          
          repeat while thedoc is playing
              delay 1
          end repeat
          
          tell thedoc to close
          
      end tell
  </code></pre>
  <p>I need to be able to open the movie to the 2nd display - because I need the input dialog to be on the main display... and activated so that it can receive the barcode scanner input. When it's under the QuickTime movie - it can't receive input.</p>
  <p>OK - thanks in advance!</p>