I was thinking about another cool feature which would be to have the camera be able to be in continuous mode taking the highest-quality-possible shots very rapidly, but keeping them in some kind of circular buffer and only saving them when you hit a button indicating you want to save them...
So for something like the "birthday cake candles" you could just fire up that script and no matter how long people blab on and on or sing - once the birthday-boy has blown on the candles you can just hit a button and it will write out all of the pictures in the buffer.
I would be fine if the script would write to the card - and constantly delete the unused ones - but card-writing is such a bottleneck. It also seems that the scripting engine has no idea what the file names are of the images that are getting shot (does it not have access to the camera's internal counter variable?)
In any case - how hard would it be to do something like this feature in a script? I take it that it would probably require some tweaks to the CHDK source to implement?