cycle
This is not really a script command, but a modifier for script commands. Used with 'next frame' and 'previous frame' to cause frames to wrap around when the last frame available is reached.
next frame
previous frame