I was looking for the wrong thing. As I understand it, the problem is that when you press the option, the script disables the menu group containing the image that is being animated, so the animation gets stopped.
I was trying to find a way to reset the animation to the first frame when I re-enabled the group.
Wrong! 😀
I’ve fixed it with a solution so simple I could kick myself.
I added another animation with a single “Scale” keyframe at 0 that sets the image to it’s default scale (1.75 in my case).
Hope that helps.
Jim.