View Full Version : Open Photoshop With Terminal

Sep 20, 2010, 04:20 AM

Newbie to Mac OS X.

On Windows Xp, I can open up Photoshop via typing:


in command prompt and press Return.

I tried to open photoshop in Terminal of Mac OS X via typing:


and executing it but it did not help.

So, what am I doing wrong and how can I start photoshop with a shortcut?


Sep 20, 2010, 04:48 AM
You need to use the open command.

Sep 20, 2010, 04:53 AM
You need to use the open command.

open -a "Photoshop CS3"

should do the work.

Sep 20, 2010, 05:17 AM


open -a "Adobe Photoshop CS5"

did helped. But can not I provide more genereal phrase like :

open -a "Photoshop"

Because I need this phrase for developing a program. I do not know which photoshop version is installed on user's computer. It can be CS3 or CS5. When using on Windows XP below expression opens up the installed Photoshop no matter which version installed.


Sep 20, 2010, 05:44 AM
As per the man page for open (which you read right? If not explain why not) you can use the -b switch to specify a bundle identifier. Assuming Adobe do not change bundle identifiers between versions of Photoshop (I don't know if they do or don't, it's not common to do so) this would work.

Sep 20, 2010, 05:53 AM
open -b "photoshop"

Thanks but above did not help. How can I find the bundle identifier for photoshop?

Sep 20, 2010, 05:54 AM
I don't know: I'm at work and don't have access to a Mac. Did you, by any chance, consider using Google to find out how to find a bundle identifier. It should be in reverse DNS form so will be something like com.adobe.photoshop, but you need to be exact, to the character, so I'd look it up in the actual app.

Sep 20, 2010, 06:13 AM
Hello robbieduncan,

open -b "com.adobe.Photoshop"

Indeed helped.

Thank you so much.