1806, Dean of the Faculty of Advocates from 1801 to 1808 and Lord President of the Court