Anyone want to be more specfic about writing shell scripts?

I was delighted with the help descriptions of how to use Hazel to run an Applescript on each file in a folder. However, I'm confused by using a shell script for the same purpose. Admittedly, this might be due to my own inexperience with shell scripting as I've only dabbled up till now.
In the AS, you use infile as the place holder for the file that Hazel will feed in the applescript. What serves that function for a shell script? Here's the real command I need to run.
So when I write the shell script, what should actually go in the place of HAZEL_FILE_GOES_HERE ?
In the AS, you use infile as the place holder for the file that Hazel will feed in the applescript. What serves that function for a shell script? Here's the real command I need to run.
- Code: Select all
qt_export --exporter=mpg4,appl --loadsettings=exportsettings.dat HAZEL_FILE_GOES_HERE /videos/resultingfile.mp4
So when I write the shell script, what should actually go in the place of HAZEL_FILE_GOES_HERE ?