During the period between a YES vote and formal independence, the Scottish Government could engage in negotiations, from within the EU, on the terms of their continuing membership in the EU.
The Scottish Government could engage in negotiations on the terms of their continuing membership in the EU. This is from within the EU. This is during the period between a YES vote. This is during the period between formal independence.