There's probably a more modern objective-c API but take a look at Launch Services, particularly LSOpenURLsWithRole. You can get a PSN back too. Not sure about the return from main. On May 16, 2013, at 10:42 AM, 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/garrick%40digitalanarch...
This email sent to garrick@digitalanarchy.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