He was co-founder of the Royal Society of Edinburgh, personal friend of Lord Melbourne and the basis of the character of Paul Pleydell in the novel Guy Mannering by Sir Walter Scott.
He then studied law at the University of Edinburgh alongside Ilay Campbell and Andrew Crosbie, and qualified as an advocate in 1758.
He served as Depute Governor of the Bank of Scotland 1816 until death,[3] replacing Patrick Miller of Dalswinton in this role.
Whilst his estates went to his children he left £13,000 to a number of charitable projects (the equivalent of several million in modern terms).
The most important donation was £1000 to create a school for the poor in Dunfermline, and the oddest was £500 to the Society for the Suppression of Begging.