Adding contextual menu item to zero out files?
Select Run Shell Script
Use the default /bin/bash command
Select Pass input as arguments
Enter the following into the text input box:

for file in "$@"; do
    cat /dev/null &gt; "$file"
done



Possible improvements:


Display admin prompt if the user account doesn't have permissions to modify the selected files.
If a directory is selected, perform the action on all files in the selected directory.