Probably the best way to make yearbooks.

ExtendScript API documentation

GitHub