openfile is a command-line tool for OS X.