Scottish pet name for Alexander, from Greek "defender" or "helper". Probably a further shortening of the short forms Alec or Alex.