Creating an animation with AppleScript

I’ve done a fair amount of AppleScripting of OmniGraffle and it
works great.

I’m considering trying to script some simple animation of a
drawing. The idea is to use a loop to repeatedly move and resize and
recolor certain objects, and save each “frame” as a separate file that
can be combined into a short video that I can put on a website.

Am I crazy to try this?
What would be the AppleScript code to save a frame, and what format
should I save to?
How do I assemble the frames into a video? (I presume I’d use an
animated GIF?)

Any tips appreciated!