I was just stupid.
DropScript works great! You just create a shell script, say, "example". Drag the file in Finder on DropScript icon. Then it creates a Cocoa app named "Dropexample". When you drop a file on the created Cocoa app ("Dropexample"), the name of the file is passed along to the script as $1. I don't know how to pass command line options, though.