2 Replies Latest reply on Mar 17, 2009 2:06 PM by Kevin Parrott

    [AS] FLIP horizontally

    Kevin Parrott Level 2

      I am trying to flip horizontally a rectangle in my doc, and having no luck in finding information to do this, can some one please tell me how to do this.

      tell application "Adobe InDesign CS3"
      set myDocument to active document
      set theRuler to zero point of myDocument
      if theRuler is not {0, 0} then
      set zero point of myDocument to {0, 0}
      end if
      set properties of view preferences to {ruler origin:page origin, horizontal measurement units:millimeters, vertical measurement units:millimeters}
      select last rectangle of page 1 of document 1
      set {a, b, c, d} to bounds of page 1 of document 1
      set theSel to selection
      set {w, x, y, z} to geometric bounds of item 1 of theSel
      move theSel by {(d / 2 - (x + z) / 2), (c - y) - 20}

      flip horizontally theSel -- not sure how to flip horizontally --

      end tell

      cheers Kev