New city-wide rules coming into force after the summer holidays, making the capital one of the first areas in Scotland to introduce widespread restrictions in schools.