It looks like Scottish acceptance into the EU is something that will not be encouraged.
Spain could wield veto over Scotland's EU membership
Spain is standing in the way of Scotland's ambitions to become an independent nation within the European Union because of fears that it could spark the break-up of the Spanish state.
So it looks like Scotland really would have to go its own way. I would imagine that
Gibraltar is at the forefront of Spanish thinking as well.