scripting - Using apple's Automator to pass filenames to a shell script -
I have an automated script that I would like to run on a folder. I want to move the script to each folder and run my shell command on it. Automator stdin is set to pass input but I do not think I am using stdin below, can you please help? Java / Xmx1000m - Jar / users / myprog / myprog.jar $ f done for
f for "$ @"
< Div class = "post-text" itemprop = "text">
Special variable $ @
shows all command-line arguments provided for the script.
For every loop
has been done by f do java -xmx1000m -jar / users / myprog / myprog.jar "$ f" done through each code and executing jar file every time you can reduce this script:
for
The default behavior of
since
$ @ to use
You should give approximately $ c quotes at the end of the java command.
Comments
Post a Comment