title: generate thumbnails using qlmanage with applescript
body: <p>long time user of this resource, first time questioneer. I'm trying to write a brief Applescript that will allow me to choose an .svg file and use the quicklook (qlmanage) function to generate a quick-and-dirty .png conversion. I want this to be pretty flexible, so installing ImageMagick is not an option. Here's the code:</p>
  
  <pre><code>set thefile to POSIX path of (choose file)
  do shell script "qlmanage -t -s 640 -o " &amp; thefile as text
  </code></pre>
  
  <p>Pretty simple, but does not work at all (this gives me an Applescript error, with the qlmanage help dialog popping up). I've tried a few variations and I get the sense that I need to state the FOLDER in the first argument after -o and the PATH in the second argument. But I have been unable to accomplish this. Keep in mind that I am a newbie at this.</p>