Adobe 26001360 Scripting Guide - Page 98
ellipse, Valid Commands, Notes, Example 9.1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 98 highlights
98 AppleScript Reference ellipse A class used to create an elliptical path in an Illustrator document. This class can only be used to create new path item objects. Table 4.16 ellipse - Properties Property R/O Value type bounds inscribed W/O list of points W/O boolean reversed W/O boolean What it is The bounds of the ellipse If true, the ellipse path should be inscribed (drawn inside the rectangle described by the bounds) If true, the ellipse path reversed Valid Commands • make Notes Illustrator's ellipse object is available exclusively for use with the make command. The class of the object created will be a path item. Therefore, the properties for an ellipse are write-once (W/O) in the sense that they can be used only to specify the creation of a new path item. This special class allows you to quickly create complex path items using the straightforward properties provided. If you do not specify any properties when making a new ellipse, default values will be used. Properties usually associated with path items, such as fill color, can also be specified at the time of creation. Example 9.1 This example demonstrates how to create a series of ellipses based on the geometry of a single selected object. -- Embellish a single selected path item by adding a bright red -- ellipse to each point on the path property pEllipseScale : 0.1 tell application "Illustrator CS" activate set selectedItems to selection -- A bit of sanity checking if (count selectedItems) is not 1 ¬ 12 Aug 03