Re: FCP start external application from plug-in
Re: FCP start external application from plug-in
- Subject: Re: FCP start external application from plug-in
- From: Paul Miller <email@hidden>
- Date: Fri, 04 May 2007 07:58:07 -0500
Dan Valentin wrote:
I've tried to start an external application from a Final Cut Pro plug-in
and, although the code compiles just fine, all the parameters are ok and
FCP loads the plug-in without complaints, it will start the application
ONLY if I use the:
[[NSWorkspace sharedWorkspace]
launchApplication:@"/Applications/MyApp.app"];
Is there any reason why I can't start it as a task (NSTask) and capture
its output? Also if I try to use the standard C approach with /fork()
...execX(...) /then /pid = fork() /will always return /pid/ /== -1/ .
> The problem is that I really need to pass to MyApp a callback function
> as a parameter and the "launchApplication" function doesn't really
> have any room for parameters :(
Don't know if this helps, but I use good ol' popen to launch an external
app (and pass parameters) from within an FxPlug. Don't know how you plan
on passing a "callback" function to an external process though.
--
Paul Miller | email@hidden | www.fxtech.com | Got Tivo?
_______________________________________________
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