Frame selections also apply in --batch mode.

Reported by LOU Yu Hong Leo.