The funny thing is that a friend of mine, born in Tarragona (Cataluña) and moved to Valencia 15 years ago, is not allowed to vote.
It's a tricky problem though, because you'd have to define what exactly counts as "Scottish" or "Catalan" for people who don't live there. Genetics? Culture? Birthplace? Any one of those could be considered inadequate.
But relax, nobody is going to vote because is illegal.