If there were command line options to say 'load this file, run this long, save and then quit', it'd be good :)
As it is, it's not easy to automate without something that can record and replay mouse clicks.