So I am new at using the Automator on OSX
i have a really simple python function
def test(input1,input2,output):
print str(input1)
print str(input2)
print str(output)
return 'function works'
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).
so i have been messing with: Automator > Choose Workflow > Actions > Files & Folders > Ask for Finder Items (Create two of these) > Utilities > Run Shell Script
So I have three questions:
1 . How can I assign these finder items to input1,input2 variables, respectively, on my python script?
2 . Where do I place my script in proximity to this code ?
import sys
for f in sys.stdin:
print f,
3 . What is the difference between stdin, arguments ?