Scottish National Party on course for 4th term in power