site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com User-agent: Thunderbird 2.0.0.0 (Windows/20070326)
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 :(
-- Paul Miller | paul@fxtech.com | www.fxtech.com | Got Tivo? _______________________________________________ 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: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... 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/ . 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. This email sent to site_archiver@lists.apple.com