This page gives tips and tricks for writing Eclipse Monkey scripts.
You can download example scripts and DOMs from the main Eclipse Monkey page on the Aptana web site:
http://aptana.com/monkey/