insert page number via script

Previous topic - Next topic

snew

I'm trying to create a script that generates a simple header and footer but i can't see a way to script inserting a page number like i would manually via menu e.g. Insert > Character > Page Number. Is this possible?