• 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
InDesign CS2, Polygons, and madness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

InDesign CS2, Polygons, and madness


  • Subject: InDesign CS2, Polygons, and madness
  • From: "Wallace, William" <email@hidden>
  • Date: Mon, 27 Aug 2007 17:54:30 -0500
  • Thread-topic: InDesign CS2, Polygons, and madness

Okay, all I want to do is look at an existing polygon and then create
another one exactly like it (without copying and pasting*). First of all, I
couldn't find any direct means of detecting the number of sides on a polygon
frame so I had to resort to:

--
set frameClass to (class of thisFrame)
if frameClass is polygon then
set thePolyPaths to paths of thisFrame
set thePathPoints to path points of item 1 of thePolyPaths
end if
--

And then count of thePathPoints should give me the number of sides. But I
don't think I can even rely on that (will the path of the frame itself
always be first in the list of paths?). But even if I can rely on it, I
can't figure out how to tell the new polygon to have that many sides.
Somewhere, I read that the number of sides property of the polygon
preference object can be set to an integer at either the document or
application level, but I can for the life of me figure out how to do it.

Has anybody else been able to do this? Or better yet, does anyone know of a
more direct way to accomplish the basic goal (besides copy and paste).

Thanks for any input.
--
B!ll

* The file is somehow corrupted and the graphic frames are not re-usable, so
I am trying to re-create all these frames from scratch via scripting).
 _______________________________________________
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

  • Follow-Ups:
    • Re: InDesign CS2, Polygons, and madness
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: UI printer selection problem
  • Next by Date: Re: InDesign CS2, Polygons, and madness
  • Previous by thread: Re: UI printer selection problem
  • Next by thread: Re: InDesign CS2, Polygons, and madness
  • Index(es):
    • Date
    • Thread