I originally thought this was based on N years of schooling in Scotland for some value of N but after a bit of searching it seems the "normally resident in Scotland" bit isn't really very well defined.
It's debatable whether it's very ethical to do what you suggested - though I don't imagine it's particularly common.
I imagine you'd need to be normally resident at the time you're applying to university, which is a bit more difficult for the average 17-18 year old busy with their final year of school.
The university would presumably also expect a Scotland-resident student to take Scottish exams at a Scottish school, which is a separate system to England, so even more hassle.
It's debatable whether it's very ethical to do what you suggested - though I don't imagine it's particularly common.