Toggle navigation
All Forums
Recent Posts
Sign In
Unix question
idunno
Posted:
March 13, 2006 6:43PM
in
macOS
edited January 2014
When in the command line, say...
$ open picture.jpg
...gets opened by preview right, but what if I wanted photoshop to open it? How do I specify which app to open something?
Damn newbie unix questions!!!!
Thanks.
Comments
Reply 1 of 3
jbl
Posts:
555
member
March 13, 2006 9:54PM
Check out the man page for open (e.g., type "man open" into the terminal).
It says you can use the form
open -a applicationName fileName
For example, I just tried:
open -a "Adobe Photoshop CS" IMG_0163.JPG
Seemed to work as expected.
Reply 2 of 3
idunno
Posts:
645
member
March 13, 2006 11:20PM
Ahh, good point. Thanks.
Reply 3 of 3
lundy
Posts:
4,466
member
March 14, 2006 7:58AM
Quote:
Originally posted by iDunno
When in the command line, say...
$ open picture.jpg
...gets opened by preview right, but what if I wanted photoshop to open it? How do I specify which app to open something?
Damn newbie unix questions!!!!
Thanks.
The BSD open command uses the LaunchServices setting for the file. Change the Open With... setting in the Get Info for the file.
Sign In
or
Register
to comment.
Comments
It says you can use the form
open -a applicationName fileName
For example, I just tried:
open -a "Adobe Photoshop CS" IMG_0163.JPG
Seemed to work as expected.
Originally posted by iDunno
When in the command line, say...
$ open picture.jpg
...gets opened by preview right, but what if I wanted photoshop to open it? How do I specify which app to open something?
Damn newbie unix questions!!!!
Thanks.
The BSD open command uses the LaunchServices setting for the file. Change the Open With... setting in the Get Info for the file.