Unfortunately Scottish parish registers contain rarely information useful for identifying our ancestors. Best way to get reasonable results is to judge by the names of children.
By the way, I myself descend from James Robertson and Margaret Clarkson I have no certain information about my James' parents but in my opinion he was no doubt a grandson of Charles Robertson from Bo'ness (James had children named Giles and Charles).