site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Szi92WLuJZtNuWgmdTViLCfK6UjoXUzQDATHQsy5t53CjDtuadwBO6FiL+TkksmXn0THOY4rm9Kvmcm5PEgtsb+bOefD3i9VApNQV18uI7MHhuqDtQklht3jwKreUU1h+81BXuTCJSKZYIrMT9XBiiU+mMGEGR4n8wZ4fvbD/xU= ; User-agent: Thunderbird 2.0.0.19 (Windows/20081209) Hello. 1. check if the FCP is running programatically 2. if not launch the FCP programmatically. 3. Issue AppleScript to make the FCP export XML format of the project 4. Parse the XML. I used tree-based XML parser from the Cocoa. Because the XML format for the FCP project is known, it would be easier to use tree based parser, instead of event based parser. The tree based parser is NSXMLDocument. I wrote a short blog article here : http://jongampark.wordpress.com/2008/06/21/a-few-lines-on-how-to-use-the-nsx... Hope it helps. On Feb 11, 2009, at 10:15 AM, Victor wrote: -----Original Message----- From: Steve Christensen [mailto:punster@mac.com] Sent: Wednesday, February 11, 2009 12:12 PM To: Victor Cc: pro-apps-dev@lists.apple.com Subject: Re: fcp parsing questions On Feb 11, 2009, at 7:32 AM, Victor wrote: The FxPlug SDK is the API for writing a FCP, FCE or Motion plugin that handles some form of rendering to a particular clip with which a particular instance of your effect class is associated. You don't normally worry about other clips in the project. If you have a reason to need information about various video clips, you would get that by sending an AppleEvent to the host application (FCP, FCE, Motion) and then parsing the returned XML. Documentation on those AppleEvents and the format of the returned XML are available on Apple's website. _______________________________________________ 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/joshua_park2006-applelis... This email sent to joshua_park2006-applelist@yahoo.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: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... I am not sure if my procedure can be adaptable to your situation, but what I would say is.. To check if an FCP is running, please cf. http://jongampark.wordpress.com/?s=check+if+process If you don't care about pre-10.2 version of Mac OS X, NSWorkspace class provides launchedApplications method to get a list of running programs. Victor wrote: Can plugin have an access to the host application functionality when host application is not running yet? I suppose you could try figuring it out on your own... Do you know where I can find specification? Thanks again, -V -----Original Message----- From: Steve Christensen [mailto:punster@mac.com] Sent: Wednesday, February 11, 2009 1:58 PM To: Victor Cc: pro-apps-dev@lists.apple.com Subject: Re: fcp parsing questions I don't believe there is any publicly-available API for reading the contents of a FCP project. I suppose you could try figuring it out on your own but then you're, of course, in the potential position of having to periodically revise your code to handle new project formats. Steve, Thanks for the input. In my case I need to obtain the list of video clips before project is loaded ( e.g. while Final Cut is not yet running ), so can't send an event to application. Is there an alternative method for reading project file directly? Thanks again, Victor I have to write Final Cut Pro plugin and the first task for it would be to retrieve names of video clips associated with the Final Cut project. My first question is: what SDK can I use to read from project file? So far I couldn't find anything pertinent in FxPlug SDK 1.2. Am I looking in the right place? The original application I have to base my prospective plugin on has been written in Java. Would it be possible to implement FCP plugin in Java? The plugin API assumes an Objective-C plugin interface. If there's a way to call your Java code from within an Objective-C plugin wrapper, then I would think you should be able to do so. I've never tried to do something like that so that's the best answer I can give. This email sent to site_archiver@lists.apple.com