What is the Ruby script for selecting all scenes

Please write code correctly

You have to set one by one. At least to my knowledge. I’m not in front of the computer right now to check it out.

Make a script to set each one as active and after that apply watermark, then go to next page.