3 Replies Latest reply on May 17, 2008 12:12 AM by sstanleyau

    [AS CS] Vertically align text boxes.

      Hi All,

      the following portion of my script:


           set FolioTextbox to make text frame with properties {geometric bounds:{"50mm", "50mm", "150mm", "150mm"}, label:"Folio box"}
                          
                          tell FolioTextbox
                               set vertical justification to center align
                          end tell


      Returns:

      get page 1 of master spread id 184 of document "Dummy File a.indd"
                page id 189 of master spread id 184 of document "Dummy File a.indd"
           make with properties {geometric bounds:{"50mm", "50mm", "150mm", "150mm"}, label:"Folio box"} new text frame
                text frame id 1064 of page id 189 of master spread id 184 of document "Dummy File a.indd"
           set vertical justification of text frame id 1064 of page id 189 of master spread id 184 of document "Dummy File a.indd" to center
                "InDesign CS got an error: Can't set vertical justification of text frame id 1064 of page id 189 of master spread id 184 of document \"Dummy File a.indd\" to center align."

      The larger script is setup to create a new text box on all master pages and enter the auto page number.Hence adding folios to any given document.

      Query
      What is the correct syntax to set the preference for a text box to be vertically centered?

      Thanks in Advance.

      Matt.