Off the top of my head, when it comes to the opening of the app, I think the most modern way to do it would be with NSWorkspace. Something like: [[NSWorkspace sharedWorkspace] launchApplication:appPath] I think NSWorkspace may also have methods for closing the app, maybe the file stuff too? Not sure about that. I would look at the framework notes and use those methods if possible. You definitely can open/close with apple events as well, but it doesn't seem like the way that's being promoted. On May 16, 2013, at 1:42 PM, Paul Miller <stelefx@gmail.com> wrote:
It seems apple events may be my only option. Does anyone know how to launch an app with an "open" event, sending it a file, and then wait for it to quit, and *also* retrieve the "result code" returned by main()?
Is that even possible? _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/pro-apps-dev/gtoledo3%40gmail.com
This email sent to gtoledo3@gmail.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com