Programmer.hbs script is very useful: it lets you modify the active document.

The Doc object fives you full control over the active document. Try typing 'Doc.' to see Intellisense list pop-up.

The last sample script is MovingWindow.hbs: it demonstrates how to use the timer.

Continue...