The code Marten posted requires the AlambicEdit API that's only available in PlanetPress Ofice/Production.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen