Command Line Service using Applescript
Ok, so I don't know if there is a website better suited for the question I have, and I don't know for sure if this is the correct forum on this site for this question, but here goes anyhow. I have a new Intel Mac Mini running Snow Leopard. What I want to do is create several services that run command line actions on a user-selected file from Finder(and most of the command line actions I wish to run, I wish to run as administrator/superuser). I am pretty sure the best way to do this would be using Applescript inside Automator. The part I can't figure out is how to take the filename of the selected file(s) and pass into an Applescript. Is there a system-wide variable of some type that holds that filename and the path to it? I think that is all I am missing?