title: How can I execute a simple Applescript from a C++ program?
body: <p>I would like to execute the Applescript command <code>tell application "Finder" to open POSIX file */path/to/somefilename*</code> from a C++ program. It looks like I might want to use <code>OSACompileExecute</code>, but I haven't been able to find an example of how to use it. I keep finding examples of how to use the <code>OSACompile</code> Terminal command. Can someone provide an example or a link to an example?</p>