Hi there
I'm currently developing a software by PHP with Apache 1.3 that bundled with Mac OS X.
Now I need to launch a graphic program(for example, Photoshop) to open some type of file(in this case, a .psd file)
I tried to run terminal commands like this:
It worked for me, but it won't work when it's run by PHP(System opens the psd file using Preview).
I guess it's the privilege problem, it seems that the "www" user can not open a file by specifying a bundleIdentifier while a normal user can.
So I'm here asking is there anything I can do about this?
Thanks!~
I'm currently developing a software by PHP with Apache 1.3 that bundled with Mac OS X.
Now I need to launch a graphic program(for example, Photoshop) to open some type of file(in this case, a .psd file)
I tried to run terminal commands like this:
Code:
open -b com.adobe.Photoshop [FilePath]
It worked for me, but it won't work when it's run by PHP(System opens the psd file using Preview).
I guess it's the privilege problem, it seems that the "www" user can not open a file by specifying a bundleIdentifier while a normal user can.
So I'm here asking is there anything I can do about this?
Thanks!~