A couple of scripts I wrote for Scriptographer, an Illustrator CS5- plugin