Google Apps Script - Google Code

Google Apps Script is a JavaScript cloud scripting language that provides easy ways to automate tasks across Google products and third party services.