Adobe 26001360 Scripting Guide - Page 218
star, Table 4.86, star - Properties
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 218 highlights
218 AppleScript Reference star A class used to create a star-shaped path in an Illustrator document. This class can only be used to create new path item objects. Table 4.86 star - Properties Property R/O Value type center point W/O fixed point inner radius W/O real point count W/O integer radius W/O real reversed W/O boolean What it is The center point of the star; default: {200.0, 300.0} The inner radius of the star; default: 20.0 The number of points on the star; default: 5 The radius of the star's points; default: 50.0 If true, the star path is reversed; default: false Valid Commands • make Notes The star can only be used with the make command. The class of the object created will be a path item. Therefore, the properties for a star are write-once (W/O) in the sense that they can be used only to specify the creation of a star path item. This special class allows you to quickly create complex path items. If you do not specify any properties when making a new star, default values will be used. Properties usually associated with path items, such as fill color, can also be specified at the time of creation.time of creation. Example 62.1 The following script demonstrates how to create a star. -- Make a 16-pointed star tell application "Illustrator CS" make new star in document 1 with properties ¬ {center point:{200.0, 500.0}, inner radius:70, radius:100, point count:16} end tell 12 Aug 03