• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: InDesign CS2, Polygons, and madness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: why this error under 10.2: Expected expression but found "property"
  • Next by Date: Re: AppleScript/Automator Help
  • Previous by thread: Re: InDesign CS2, Polygons, and madness
  • Next by thread: Script errors with empty file reference
  • Index(es):
    • Date
    • Thread