Google script – use every time the newest sheet

I want to create a script which should use everytime the newest sheet. The sheet gets updates from another group and I want to create an email alert, if I have something to do. Everytime this …