Automator Get Filename of Selected File I'm trying to create a Service where I can select an individual file, right click, go to Services and tap Perm Delete using Automator - i.e.:

rm &lt;path&gt;

I've looked around and i just can't find how to get the file path of the selected file.

Can anyone help.

Thanks
Use a Run Shell Script action. 

Select the /bin/sh shell and select pass input as argument

Add the code 

for f in "$@"
do
    rm -rf "$f"
done


I would also suggestion using a Ask for confirmation action before running the script. You know for safety, since rm has no way back.