title: Using apple's Automator to pass filenames to a shell script
body: <p>I have an automator script that I'd like to run on a folder.  I want the script to take each file in the folder and run my shell command on it.  Automator is set to pass input to stdin, but I don't think I'm using stdin correctly below, can you help please?</p>
  
  <pre><code>for f in "$@" 
  do
      java -Xmx1000m -jar /Users/myprog/myprog.jar $f 
  done
  </code></pre>