Re: Open XML event in FCP
Re: Open XML event in FCP
- Subject: Re: Open XML event in FCP
- From: Eryk Vershen <email@hidden>
- Date: Tue, 8 Apr 2008 22:45:53 -0700
On Apr 8, 2008, at 7:33 AM, Valentin Dan wrote: Hi, I have an application that sends an open XML event (kFCPImportXMLToDocument) to Final Cut Pro. The XML is opend in an “Untitled Project”. How can I specify the name of the project to be created ?
You can't. Projects don't have a name until they have been saved. You can't put an targetprojectname in the XML you send because the save dialog gets frozen by the XML import progress bar and a deadlock occurs. A "save as" event would be nice, but doesn't exist.
If you really think you want this you could do a kAEOpenDocuments passing an XML document with the targetprojectname element in the XML. That will give the user a save dialog without an obscuring dialog. (The file will need to have a type of "XML " in order to work right.) However, the user can still override your choice of name.
Also is there an option to import the content of the XML in a already existing & opened project?
Yes, of course. You pass an reference to the project as part of the apple event. To select a project in the sample app, you click the "Choose File…" pop-up. This produces a select dialog.
PS: The example application doesn’t really say much ! Doesn’t even allow the selection of an xml or naming the project (which is what I need) !
Not sure what you mean here. You can't select an XML file because you have to open it first. The kFCPImportXMLToDocument event sends a string, not a file. (The sample says "The contents of the frontmost open window will be sent") The sample was originally a tool for testing the new events. In that context we wanted to see what we were sending.
Some of the ways the sample apps works are a bit obscure and need to be documented.
regards, -eryk |
_______________________________________________
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