title: Is there a way to trigger Finder's "quick look" window with Applescript?
body: <p>I am using Applescript to automate some tasks in the OSX Finder. The script opens up a folder and selects the first image in that folder. I would like it to also bring up the "quick look" window (exactly as if the user had pressed the space bar).</p>
  
  <p>I did find a way to fire up quick look from the command line using <a href="http://osxdaily.com/2007/12/24/use-quick-look-from-the-command-line/" rel="noreferrer">qlmanage</a>, but that brings up a static quick look window, which is no longer tied to the finder selection.</p>
  
  <p>Code so far:</p>
  
  <pre><code>property folderPath : "/Volumes/Media/Images"
  
  on run {}
      tell application "Finder"
          activate
              set imageFolder to folder (folderPath as POSIX file)
              set imageFile to first item of imageFolder
              select imageFile
              -- show quick look?
      end tell
  end run
  </code></pre>