Peter, Scotland will not have to join the Shengen area. Ireland opted out and is party of the Common Land Area with the UK hence no passports required. If Scotland becomes independent then the rest of the UK will also have to renegotiate certain terms. The UK IS Scotland and England so no Scotland means no UK.