From a terminal prompt, when I do:
open -a /Users/homer/Applications/Preview /Users/homer/Downloads/test.jpg
I get an error:
FSPathMakeRef(/Users/homer/Applications/Preview) failed with error -43.
But if I do:
open /Users/homer/Downloads/test.jpg
the image is opened in Preview just fine.
What is going on?
open -a /System/Applications/Preview.app file.png
works for me. Note the default install location of /System/Applications, and the.app
extension, which I found I needed to include.