pdf works with the example below.
in drawbot directly it saves as .gif.
for i in range(10):
newPage(300, 200)
fill(random(), random(), random())
rect(0, 0, width(), height())
saveImage(["~/Desktop/test_gif.gif"])
no traceback. it just never shows up on the desktop.