This script makes zigzag notches along the document edges.
After applying the effect, you can alter the margin color (white by default) by double-clicking the forward layer's thumbnail.