 He was made a baronet in 1908.In 1917, he was elected a Unionist Member of Parliament (MP) for Edinburgh and St Andrews Universities and for the Combined Scottish Universities in 1918, holding the seat until he stepped down at the 1922 general election.He was appointed Lord Lieutenant of Orkney and Shetland in 1919.