Thread View: adobe.scripting.indesign
3 messages
3 total messages
Started by KEVINP1
Tue, 17 Mar 2009 19:22
[AS] FLIP horizontally
Author: 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
Re: [AS] FLIP horizontally
Author: Shane_Stanley
Date: Tue, 17 Mar 2009 21:41
Date: Tue, 17 Mar 2009 21:41
5 lines
1389 bytes
1389 bytes
flip item theSel given horizontal around center anchor -- Shane Stanley <sstanley@myriad-com.com.au> AppleScript Pro Sessions <http://scriptingmatters.com/aspro>
Re: [AS] FLIP horizontally
Author: KEVINP1
Date: Tue, 17 Mar 2009 22:06
Date: Tue, 17 Mar 2009 22:06
3 lines
618 bytes
618 bytes
Thankyou Shane, appreciated. Kev
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads