Applescript - set page orientation

Does anyone know if it is possible to set the page orientation directly from Applescript ? I have searched the dictionary but not found any command. In the past I have assigned a template but that causes sandbox issues.

Simon