Adobe 26001360 - Illustrator CS - PC Manual page 225

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

Adobe Illustrator CS Scripting Guide
Table 4.91 symbol, symbols — Properties (Continued)
Property
name
properties
source art
Valid Commands
• count
• delete
• duplicate
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 sebs@mac.com
-- 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
R/O
Value type
R/O
Unicode text
record
R/O
anything
• exist
• make
12 Aug 03
What it is
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
225

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents