Carmichael, William, Magistrate of Edinburgh