Microsoft Office’s Applescript syntax is a hybrid of Applescript and Visual Basic. You can’t script with Applescript without referring to the Visual Basic reference. It sucks.

All snippets are for 2004, unless otherwise noted.