The speed will still be 100 when you view the gif after the second round as having batchmode active stops the speed from being altered.

I hope that this allows you to test the effect. I see this on my Mac and Linux box.. The Mac is running
version 2.0.0-rc-65/1.51s, build:961c5f1b7f
I'm not too sure what version the Linux box is running (away from it at the moment), but it should be equally new.

I've suddenly thought that I'm actually running Fiji (fiji.sc). I don't know how this will affect the animation options .

Thanks again for your help with this. I'm happy to supply any further information if you are unable to reproduce the issue.

Dear ImageJ users, I'm hoping that you can help me with a small problem
that Ii have. I have written a rather crude macro to generate little
animated gifs for all my folders containing dm4 images. The macro works
quite well, but in batch mode the animation speed is not set.

Specifically I use the option setBatchMode(true); at the start of the
macro and the command that now doesn't work is:

run("Animation Options...", "speed="+speed);

where 'speed' is calculated as 5/number_of_frames (this is number is
input into the function).

When I test it without batchmode it works fine, but with batchmode on
all of the animation speeds default to the last defined speed.

I was wondering if this is meant to happen, or if I have missed an
option that would help me.