http://www.apple.com/applescript
Apple Script is the built-in scripting language of Mac OS. It has been around since the days of System 7, and it's still very useful today. Applications can make their functions scriptable, so you can do really powerful things, moving data from app to app, processing it along the way. These are some useful scripts I've made for various tasks.