title: How to download an image from url to use in Photoshop scripting (ExtendScript Toolkit)
body: <p>In my Photoshop javascript (using ExtendScript toolkit), I need to download an image before processing it. I'm trying with wget, as such:</p>
  
  <pre><code>app.system("wget https://dl.dropboxusercontent.com/u/73950/IMG_1827%20%282%29.png &gt; ~/Desktop/test.png");
  </code></pre>
  
  <p>Unfortunately, this produces an empty png file.</p>
  
  <p>What's the correct way to download files from url when scripting with Photoshop?</p>