If Scotland vote yes, there is no way they'd get into the EU or NATO, right? I cannot see the UK (or whatever they would be called), Spain, or any other national with a secessionist movement allowing them in either group.
We will be allowed into NATO. It would not wish to leave this undefended;
EU shouldn't be a problem as well because Scotland wouldn't be breaching international law to become independent. It would be getting its independence through a process negotiated with the central government, where England would be explicitly recognizing and accepting the referendum and its results as a sovereign wish of the Scots for self-determination.
If England didn't accept the referendum in first place, then Scotland would be in breach of international law by running it and by self-declaring itself independent.
The thing is, even if Scotland votes yes next week and becomes independent, membership to the EU is not automatic. There's no succession of States, there's the formation of a whole new State. Thus, Scotland would have to go through the entire process of accession to the EU if they want EU membership. And while Scotland's legal order is already pretty much up to EU standards, negotiations and ratifications could take a little while.