Selected Objects; Notes On Renaming Objects Stored In The Application's Panels - Adobe 65010248 - Illustrator CS4 - PC Manual

Scripting guide
Hide thumbs Also See for 65010248 - Illustrator CS4 - PC:
Table of Contents

Advertisement

C
3: Scripting Illustrator
HAPTER
VBScript
To refer to a
Documents(1).PathItems(1)
To refer to a
Documents(1).Layers(1).PathItems(1)
For more examples of collection-item containers, see the
Illustrator CS4 Scripting Reference: AppleScript or the Properties table in Adobe Illustrator CS4 Scripting
Reference: JavaScript or Adobe Illustrator CS4 Scripting Reference: VBScript. A diagram of the Illustrator CS4
object model is in

Selected objects

Sometimes, you want to write scripts that act on the currently selected object or objects. For example, you
might want to apply formatting to selected text or change a selected path's shape.
Selecting text
To select text, use the
Selecting art items
You can select an art object (like graph items, mesh items, raster items, and symbol items) by setting its
selected
Referring to selected art items
To refer to all currently selected objects in a document, use the
work with the objects in the selection array, you must determine their type, so you will know which
properties and methods or commands you can use with them. In JavaScript and VBScript, each artwork
object type has a read-only
AppleScript, use the

Notes on renaming objects stored in the application's panels

Several objects can be renamed; that is, their
be sorted alphabetically in the corresponding Illustrator panel. If a script modifies the name of such an
object, references to that object by index can become invalid.
Brush
Gradient
Graphic Style
Pattern
Swatch
Symbol
Variable
object in a document:
path items
object in a layer:
path items
"The Illustrator Scripting Object Model" on page
command or method of the
select
property to
. (In AppleScript,
true
typename
property.
class
document
text range
is a property of the
selected
property that you can use to determine the object's type. In
property is writeable. The following types of objects can
name
Working with objects 28
object Elements table in Adobe
17.
object.
page items
object's
document
selection
object.)
property. To

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs4

Table of Contents