Re: launching an app with apple events and waiting for it to quit?
Re: launching an app with apple events and waiting for it to quit?
- Subject: Re: launching an app with apple events and waiting for it to quit?
- From: Garrick Meeker <email@hidden>
- Date: Thu, 16 May 2013 11:00:32 -0700
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 <email@hidden> 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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden