Adobe 26001360 Scripting Guide - Page 81
Example 4.1, Character Styles sample #1
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 81 highlights
Adobe Illustrator CS Scripting Guide 81 Table 4.6 character style - Properties Property R/O Value Type What it is warichu justification warichu lines warichu scale Valid values: • auto justify • center • full justify last line center • full justify • full justify last line left • full justify last line right • left • right integer real The Wari-Chu Justification The number of Wari-Chu (multiple text lines fit into a space meant for one) lines The Wari-Chu scale Example 4.1 -- Character Styles (sample #1) --- Activate Illustrator -- Make a new document -- Make three text frames with different names, contents, and positions -- Create a character style with color, tracking, size, and capitalization information -- For each character in the text frame, apply the character style -- tell application "Illustrator CS" activate make new document make new text frame in document 1 with properties {name:"text 1", contents:"Scripting is fun!", position:{50, 100}} make new text frame in document 1 with properties {name:"text 2", contents:"Scripting is easy!", position:{100, 200}} make new text frame in document 1 with properties {name:"text 3", contents:"Everyone should script!", position:{150, 300}} make new character style in document 1 with properties {name:"Big Red"} set the size of character style "Big Red" of document 1 to 40 12 Aug 03