Count - Adobe 26001360 - Illustrator CS - PC Manual

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

Advertisement

Adobe Illustrator CS Scripting Guide
Example 82.1
--This script copies the selected objects (if any)
tell application "Illustrator CS"
activate
copy
end tell

count

Counts the objects (elements) of the specified class (or the objects matching a test).
Table 4.114 count — Parameters
Parameters
count
reference
[each/every] type
class
Notes
This command can be used to return the total number of objects of any single class contained
by a specific object. The count command can also be used in conjunction with the whose
clause to return the number of objects that match a test.
What it is
The object whose elements
are to be counted
The class of the objects you
want to count. The class
should be specified using
the singular form if one of
the optional terms is used.
Otherwise, you can use the
singular or plural form, i.e.
document or documents.
12 Aug 03
Objects supported
• graphic style
• brush
• character
• compound path
item
• document
• gradient
• gradient stop
• group item
• insertion
point
• layer
• line
• mesh item
• page item
• paragraph
Returns
integer
• path item
• path point
• pattern
• placed item
• plugin item
• raster item
• spot
• tag
• text frame
• view
• word
253

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents