Article View: adobe.scripting.indesign
Article #17133Re: Resetting a frame to a default shape
From: rob day
Date: Mon, 07 Jul 2003 19:14
Date: Mon, 07 Jul 2003 19:14
28 lines
1678 bytes
1678 bytes
Excellent. I had started trying to make it work for +4 point polygons--set myPoints to count of path points of myPath --but quickly gave up.
If you know there are not any intended polygons or circles--this does an entire document:
tell application "InDesign 2.0.2"
set myPolygon to every page item of active document
repeat with x in myPolygon
set myBounds to geometric bounds of x
set myTop to item 1 of myBounds
set myLeft to item 2 of myBounds
set myBot to item 3 of myBounds
set myRight to item 4 of myBounds
set myPath to path 1 of item 1 of x
--set myPoints to count of path points of myPath
set anchor of path point 1 of myPath to {myLeft, myTop}
set anchor of path point 2 of myPath to {myLeft, myBot}
set anchor of path point 3 of myPath to {myRight, myBot}
set anchor of path point 4 of myPath to {myRight, myTop}
end repeat
end tell
Doesn't get into groups either--haven't had time to figure it out.
Technical Details
Message-ID:
<1de9c5ff.3@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de9c5ff.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,cd54cee4fda94831 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-07-07 12:38:09 PST From: "rob day" <vevans@mediaone.net> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Resetting a frame to a default shape Message-ID: <1de9c5ff.3@WebX.la2eafNXanI> Date: Mon, 7 Jul 2003 12:14:01 -0700 References: <1de9c5ff.-1@WebX.la2eafNXanI> Lines: 30 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit