title: How do I execute a photoshop droplet from the command line on mac osx?
body: <p>Added: The problem: the script runs and photoshop opens, but the droplet doesn't execute on the jpg file to watermark it.</p>
  
  <p>Original:
  I'm automating a work flow using ruby on mac osx. The aim being to pass my ruby script a directory (containing images), it opens each one, checks the orientation &amp; size, and passes the image to the relevant photoshop droplet based on this, then uploads them to flickr.</p>
  
  <p>Initially I was using 'system' to try and run the droplet because I thought it was an executable binary.</p>
  
  <p>Of course the droplet requires photoshop to run it so instead I've tried this:</p>
  
  <pre><code>system('open /Users/fullpath/watermark_landscape_W600 --args /Users/fullpath/y020_Pork_Terrine_Orange_Paste_Bread.JPG')
  </code></pre>
  
  <p>LaunchServices is clearly returning the correct application because photoshop opens.</p>
  
  <p>I enabled history logging in photoshop in the vain hope that it would tell me what droplets and parameters were passed to photoshop when it was opened but the output is very poor:</p>
  
  <pre><code>2013-07-14 12:45:53 Photoshop launched
  2013-07-14 12:47:06 Photoshop quit
  </code></pre>
  
  <p>How can I check to see that open is passing the correct parameters to osx and photoshop? is there a stand error log output I can hook into?</p>