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?
for f in "$@"
do
java -Xmx1000m -jar /Users/myprog/myprog.jar $f
done