How to use AppleScript application with "open file -a AppleScriptApp"?
After few different attempts and hacks I found good solution to solve my problem. First - implement the script. Then open the Automator.app and create new application. Then combine Get Specified Finder Items action and Run AppleScript. So now open -a my_automator_app /path/to/file will pass /path/to/file/ to my script. And that's cool.

P. S. in the argv will be stored the alias to the file, not the posix file path. To convert it from alias to posix you should use

set aliasPath to item 1 of item 1 of argv
set filePath to (the POSIX path of aliasPath)


Oh and don't forget that you might want to get the quoted form of filePath in case it contains some special characters (like space or ~).

You can get more information about alias/posix paths here