Automator help - passing filename to shell script
I am trying to do a simple automator service where if I select a file and right click and run the service that it grabs that filename location and passes it to a shell script to run. In this case it is mkvdts2ac3.
Right now I have a service called MKVDTS2AC3. In it I have "Get Selected Finder Items" then "Run Shell Script" with the following command ~/mkvdts2ac3/mkvdts2ac3.sh -n $@
I had read that $@ should grab the file location from the Get Selected FInder Items action, but it doesnt seem to be passing properly. I get an error when running the service.
Thanks!
MacBookPro Unibody, Mac OS X (10.6.2)