Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.