Well, that is why I suggested he look at what was actually getting sent in the Apple Event.
I've used the AppleEvents sample more times than I can count over the last three plus years to send XML to FCP 5, 6 & 7. I know it works and I know you don't get a request for a DTD. I know that we made a lot of improvements in the XML parsing in 7.0 so I'm not surprised that 7.0 is able to do better. I've also worked with a number of developers over the last three years who are are using apple events to send XML to the older versions of FCP so I know there is no general problem with sending XML.
Given that he said importing the same XML works in 5 & 6 that implies the error is in what is actually getting sent in the apple event.
-eryk
On Feb 22, 2010, at 11:59 AM, Tim Jones wrote: Not to discount your answer, Eryk, but I'm interested in a bit more info here than simply it should work if you do it correctly. As Brad's indicated, his method - whether right or wrong - works with the latest and greatest but fails with an unexpected result in 6 and 5. Personally, I only have a need to read XML from FCP so I've not run into this, but it does lead one to wonder what changed that would allow an incorrect XML event to work in the new generation.
TIm On Feb 22, 2010, at 12:38 PM, Eryk Vershen wrote: The example code works just fine. I just downloaded it and tried it.
Some people get tripped up - expecting that should give it the name of an XML document - you don't. You open the XML document in the test application and when you run a sendXML it will send the contents of the frontmost document. It works this way to make it easy to get XML from FCP, modify it and send it back.
I feel certain there is something wrong with the actual bytes being sent by your app. Plenty of developers have used this functionality without reporting the issue you describe. Please turn on AppleEvent tracing and verify that the characters being are actually correct.
-eryk
On Feb 22, 2010, at 9:56 AM, Brad Wright wrote:
Tim -- Tim Jones
Remember: Amateurs...built the ark. Professionals...built the Titanic
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
|