Re: InDesign CS2, Polygons, and madness
Re: InDesign CS2, Polygons, and madness
- Subject: Re: InDesign CS2, Polygons, and madness
- From: "Stockly, Ed" <email@hidden>
- Date: Tue, 28 Aug 2007 10:35:23 -0700
- Thread-topic: InDesign CS2, Polygons, and madness
>>> I can't figure out how to make a new polygon with a specific number of
sides.
Rather than think of a polygon as sides, InDesign thinks of it as a series
of points:
Geometric bounds: {{x1,y1}, {x2,y2}, {x3,y3}, {x4,y4}, {x5,y5}}
Try something like this:
tell application "Adobe InDesign CS2"
set originalPolygon to the object reference of the selection
set startingBox to properties of originalPolygon
set polyBounds to geometric bounds of startingBox
tell page 1 of document 1
make new polygon at beginning with properties {geometric
bounds:polyBounds}
--or
make new polygon at beginning with properties startingBox
end tell
end tell
HTH,
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden