How can I get started with scripting the Editor?

Have you tried Blutilities?