Use this syntax for the file argument:
%(File)"prompt"%
This syntax creates an action that displays a prompt for a file name when the user double-clicks the action icon.
For example, this execution string displays a dialog box that prompts for the file argument of the wc -w command:
EXEC_STRING wc -w %(File)"Count words in file:"%