Quicktime Midi?

Hey all,
I would like to create an applescript app that would generate midi data and play it through quicktime’s built in systnesizer, but I can’t seem to find any information. Is this even possible?

Thanks,
Jeff