Automatic file translation

Hello all, 

I'm completely new to the SDL APIs and as such the whole information I find about it is a bit confusing. I was wondering about the limits of automated tasks. Could I set up the system in such a way that it would take a file from the directory apply translation memory, run it through machine translation and save the resulting file (of course, also create the project itself automatically, though as I've read it seems that is not a problem).