import as a different doc type

Is it possible to “convert” a document while importing it (using applescript)? I’ve tried this and it gives an error that DTP can not make the document into the specified type

set new_rtf to import doc_Path to newGroup as rich

A second question I have relates to writting specialized plugins to import new document types to DTP. Is there some basic documentation available on the standards used? I am an organic chemist and would love to be able to import chemical structures. I realize this is too specialized to expect Devontech to support.



Converting while importing is not possible. But this might work:

	set theOriginal to import thePath
	set theRecord to convert record theOriginal to rich
	delete record theOriginal