osx - Cant get open -a to work correctly with Adobe -


i new shell scripting , trying open pdf files terminal on mac, can script later, cannot them open in acrobat or photoshop when specify application. have tried both open -a acrobat ~/filename/.pdf , open -a "adobe acrobat 7.0 professional" /(absolute url)/.pdf, , variations thereof.

it works great when try preview or textedit , opens fine when use open, except open in preview. there screwy adobe s preventing me targeting application or missing simple? appreciated.

edit

after banging head against wall found out defining absolute path wrong. not sure why acrobat , photoshop not need absolute path when opening , when specifying application -a escaping spaces in path worked.

example: /applications/adobe\ acrobat\ 7.0\ professional/adobe\ acrobat\ 7.0\ professional.app/

the open command specific mac osx. i've updated tags reflect that.

if application you're opening in /applications directory, not need path. application name. not need .app suffix. case in name isn't important, exact spelling is, , if application contains spaces, need enclose application's name in quotation marks.

i don't have acrobat or photoshop on system, if contain revision numbers in name, or have spaces, need include them. example:

$ open -a "adobe acrobat 7.0 professional/adobe acrobat 7.0 professional" foo.pdf 

(i have no idea of actual name. don't have acrobat on system, , have no plans on downloading piece of whine-ware (defined software demand update more use it).


Comments