Wikipedia
Sheriff-substitute
In Scots Law, a sheriff-substitute, commonly (and, increasingly, officially) called simply a sheriff, is a magistrate sitting in a local Sheriff Court.