🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17106

Re: Resetting a frame to a default shape

#17106
From: rob day
Date: Sat, 05 Jul 2003 22:27
22 lines
1550 bytes
Christopher,
In Case you missed it, I posted this in the other forum:

tell application "InDesign 2.0.2"
set mySelection to selection
set myBounds to geometric bounds of selection
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 mySelection
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 tell

If you new that all the boxes in a doc should be square it would be easy to make a script to square up every polygon.
Technical Details
Message-ID: <1de9c5ff.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <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-05 15:37:59 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-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.tpinternet.pl!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.0@WebX.la2eafNXanI>
Date: Sat, 5 Jul 2003 15:27:50 -0700
References: <1de9c5ff.-1@WebX.la2eafNXanI>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit