A SendTo validation script is a script that is executed to find out whether a selected script could be applied to the selected files.
A validation script can be written in any scripting language that is supported on your system. You can specify the command to be used to execute the script. The default command is /bin/sh.
Validation is considered to be successful if and only if the exit status of the script is 0.
The validation status of selected files is invalidated when:
If you do not specify a validation script when you create a script to act on selected files, no validation is performed and script is considered as valid.
A validation script, when invoked, uses full paths to all selected files as its parameters. No input or output is displayed in the IDE.