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 through each code and executing jar file every time you can reduce this script:

 for  The default behavior of  since       has been done by f do java -xmx1000m -jar / users / myprog / myprog.jar "$ f" done  

$ @ to use

You should give approximately $ c quotes at the end of the java command.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -