In 1745, while serving as a volunteer under Sir John Cope, he narrowly escaped being hanged as a spy at Musselburgh Bridge.
In 1748 he was appointed sheriff depute of Kincardineshire, and on 22 Aug. 1759 was elected one of the assessors to the magistrates of Edinburgh.