A Scottish advocate and historian. He held several prominent legal appointments (Wikipedia).