title: Assigning variables to command script in Automator
body: <p>So I am new at using the Automator on OSX</p>
  
  <p>i have a really simple python function</p>
  
  <pre><code>def test(input1,input2,output):
      print str(input1)
      print str(input2)
      print str(output)
      return 'function works'
  </code></pre>
  
  <p>what i want to do is generate a simple application that asks for the file locations of the two inputs and the file destination for the output (name text box for output).</p>
  
  <p>so i have been messing with:
  Automator > Choose Workflow > Actions > Files &amp; Folders > Ask for Finder Items (Create two of these) > Utilities > Run Shell Script</p>
  
  <p>So I have three questions:</p>
  
  <p><strong>1 . How can I assign these finder items to input1,input2 variables, respectively, on my python script?</strong></p>
  
  <p>2 . Where do I place my script in proximity to this code ?</p>
  
  <pre><code>import sys
  
  for f in sys.stdin:
      print f,
  </code></pre>
  
  <p>3 . What is the difference between stdin, arguments ? </p>