My son is autistic and opens so many new Safari windows playing flash movies that his MacBook often becomes so unresponsive that it's faster to hard reboot it than wait for the force quit dialog to come up.
Is there a way that I could either limit the amount of windows that he can open, or even set a periodic job to close the oldest open ones leaving a certain amount open?
I know absolutely no AppleScript, any pointers would be welcome.