Scripting quicktime to flatten SMIl file

I have customised the SMIL sequencer wizard to read in media data from a file and produce the corresponding SMIL file(ie with the .mov extension).Is there any way that i can script the Quictime player to make this movie self contained quicktime movie file?
Thanks in advance.