Adobe 26001360 Scripting Guide - Page 225
Valid Commands, Example 66.1, Table 4.91, symbol, symbols - Properties Continued
UPC - 718659321840
View all Adobe 26001360 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 225 highlights
Adobe Illustrator CS Scripting Guide 225 Table 4.91 symbol, symbols - Properties (Continued) Property R/O Value type What it is name properties source art R/O Unicode text record R/O anything The name of the symbol; defaults to "New Symbol nnn" where n is an integer, starting at 1 and increasing with each newly created symbol All of the properties of this symbol returned as a record The source art is only used when creating a new symbol Valid Commands • count • delete • duplicate • exist • make Example 66.1 -- Symbol Items --- Make a new document -- Add 10 rectangle to the document , applying a different graphic style to each -- Note: if you know a better way to scatter the symbols back and forth, email me at [email protected] -- Add a delay of at least a second to allow for the UI to catch up to the scripting plug-in -- Make a new symbol for each page item, using the page item as the source art -- tell application "Illustrator CS" activate make new document repeat with i from 1 to 10 round (i / 2 - (round (i / 2) rounding down)) rounding up make new rectangle in document 1 with properties {position:{100 + (the result * 150), (50 + i * 70)}, height:20, width:20} apply graphic style (i + 1) of document 1 to the result end repeat delay 2 repeat with i from 1 to 10 make new symbol in document 1 with properties {name:("symbol" & i as string), source art:page item i of document 1} end repeat end tell 12 Aug 03