I normally use QuickTime Animation. See this After Effects dialog as a template for the export settings. I have no Apple Motion, but the settings should be similar.