There was a Baron Thomas Shaw KC, who was Lord Advocate of Scotland from 1905-1909, and was then appointed to the House of Lords for the next twenty years. His original Barony was in Dunfermline, Fife although his hereditary peerage was of Craigmyle in the county of Aberdeen. I suspect this may not be your man, but you might want to take steps to rule him out altogether.