Adobe 26001360 Scripting Guide - Page 119
gray color info, Table 4.30, gray color info - Properties
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 119 highlights
Adobe Illustrator CS Scripting Guide 119 -- Check for empty selection if selectedItems is not {} then tell application "Illustrator CS" -- Create the new group to contain the duplicated items set groupRef to make new group item at document 1 -- Duplicate the selected items to the new group set newItemList to duplicate selectedItems to beginning of groupRef -- Get graphic style names for display in the choice list set styleNames to name of every graphic style of document 1 end tell -- Present dialog and let user choose the style to apply set styleName to (choose from list styleNames ¬ with prompt "Style for selection?") as string if styleName is not "" then tell application "Illustrator CS" (* The chosen graphic style is applied to the list of items returned by the duplicate command, rather than to the new group itself, because the apply command works on individual path items, not groups of items *) apply graphic style styleName of current document to newItemList end tell end if end if gray color info A gray color specification, used to specify a gray color in conjunction with the color property. Note: The gray color info class inherits all valid properties from the color info class. Table 4.30 gray color info - Properties Property gray value R/O Value type real What it is The tint of the gray; range: 0.0-100.0; default: 0.0 12 Aug 03