I have generated a pdf file external to my app, and once that is complete, I want to open my app and pass it the appropriate file path for use. I’ve looked at the Cocoa Scripting Guide, but I’m not sure if this is what I need. All I really want is to pass the path of the pdf as an argument via the command line. Can anyone point me in the right direction? Thanks.
Share
I assume you want to run it from a shell script of some sort? If so, you should be able to use the
opencommand (manpage) to start it: