http://hints.macworld.com/article.php?story=2004012218171997 open -a Preview foo.jpg Open files from the Terminal with the appropriate application