Sir William Scott, 1745-1836