Article View: adobe.scripting.indesign
Article #720[AS] FLIP horizontally
From: KEVINP1
Date: Tue, 17 Mar 2009 19:22
Date: Tue, 17 Mar 2009 19:22
22 lines
1398 bytes
1398 bytes
Hi
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
Technical Details
Message-ID:
<59b849d8.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,88708532caf49d2e,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: KEVINP1@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [AS] FLIP horizontally Message-ID: <59b849d8.-1@webcrossing.la2eafNXanI> Date: Tue, 17 Mar 2009 12:22:50 -0700 Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit