layer.previousSibling
This property will return the previous layer of the layer list. The returned data type is layer. This property is read only.
MACRO LayerSibling
DEFINE i AS integer
DEFINE theLay AS layer
i = activeDoc.layerCount
theLay = activeDoc.layers[i]
WHILE (exists (theLay) = true)
MESSAGE "Processing layer " + theLay.name
theLay = theLay.previousSibling
END WHILE
END MACRO