Article View: adobe.scripting.indesign
Article #1716Re: Align to page
From: Eric
Date: Tue, 27 Jan 2009 21:59
Date: Tue, 27 Jan 2009 21:59
28 lines
1511 bytes
1511 bytes
Something like this should do the trick...
tell application "Adobe InDesign CS3"
tell active document
--Standardize your coords
set zero point to {"0p", "0p"}
set horizontal measurement units of view preferences to picas
set vertical measurement units of view preferences to picas
set ruler origin of view preferences to page origin
--Define Doc & Box height/width
set thisDocHeight to page height of document preferences
set thisDocWidth to page width of document preferences
set boxHeight to 3 --pi
set boxWidth to 12 --pi
--Position in bottom right corner
-- using top,left,bottom,right coord system
set boxBounds to {thisDocHeight - boxHeight, thisDocWidth - boxWidth, thisDocHeight, thisDocWidth}
--Place the boxes
tell every page
set myTextBox to make new text frame with properties {geometric bounds:boxBounds}
end tell
end tell
end tell
Technical Details
Message-ID:
<59b7b3c0.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b7b3c0.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,fe5c0c23f23493 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Eric_@_MCA@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Align to page Message-ID: <59b7b3c0.0@webcrossing.la2eafNXanI> Date: Tue, 27 Jan 2009 13:59:28 -0800 References: <59b7b3c0.-1@webcrossing.la2eafNXanI> Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit