Robert Dawson Scott, University of Edinburgh