keeper of the Quarter Seal of Scotland, was formerly a senior position within the legal system of Scotland