At the moment there is no way to easily automate this without GUI scripting. A command-line tool for manipulating Espionage'd folders is planned though.
Also, we are planning on making Espionage more active about managing folder sizes, so you might not have to worry about it in the future.
