Scripting Quicktime to record audio

I am writing a database program for my wife using Filemaker Pro 13 on a new Macbook Air running Maverick. I want to be able to give her the ability to record a message and store it in a container field.

I think I can to this by scripting Quicktime to record and save the file.

My questions are :
1 is this possible?
2 can I script the resulting to file to be an mp3 file?

thanks for any help or insight

Kevin