Resolution: TIBCO Adapter for Files publication service implicitly passes the current file to the preprocessing script as argument zero. If there are more input files in the input directory then the file adapter will process all files beginning with numbers, in a numeric order, then alphabetically. When the preprocessing script runs, the "FileName" parameter is passed by default to the preprocessing script even without explicitly passing any other parameter.