Not Edinburgh (Dalkeith), but some insight into how planning does/n't work.
In Edinburgh Burdiehouse Primary was demolished rapidly after it closed (last year) but other schools remain empty even though the expectation is eventual demolition.
There was a Sunday Herald article a couple of weeks ago by (Edinburgh cyclist) Malcolm Fraser about the need to re-use buildings for aesthetic and sustainability reasons - he was talking about demolition of sandstone tenements for the 2014 Games 'village'.
http://edinburghnews.scotsman.com/topstories/Fight-over-an-empty-school.6754383.jp