Running a command line tool based on its extension
I would use Automator. Make an app that takes an argument (file dropped on it, file double-clicked associated with that app, whatever), and runs the command you have above.