23 Replies Latest reply: Oct 3, 2012 7:28 AM by kellybellis RSS

    [AS] InDesign CS5.5 page orientation error

    TonyMacerony Community Member

      I have a strange issue with setting the page orientation of a new document in InDesign CS5.5.

       

      In CS5 I used the following script:

      tell application "Adobe InDesign CS5"

                set vTemplate to make new document

                tell vTemplate

          set page orientation of document preferences of active document to landscape


                end tell

      end tell

       

      But the same script in CS5.5 gives an error:

      "Adobe InDesign CS5.5 got an error: Can’t set page orientation of document preferences of active document of active document to landscape."

       

      Can somebody pint me in the right direction?

       

      Thanks!