Robert Blair, Lord Avontoun — Scottish advocate and judge