Chapter 3. Scripting Illustrator

This chapter describes the Illustrator object model, and provides an overview of how to use JavaScript to program Illustrator CS.

The Illustrator object model

A good understanding of the Illustrator object model will improve your scripting abilities. The figure below shows the containment hierarchy of the object model, starting with the Application object. The Layer and GroupItem classes and all text classes can contain additional objects of the same class which can, in turn, contain additional nested objects.

The Illustrator object model

Illustrator Scripting Object Model

Within text, characters, words, paragraphs, and lines are all represented ...

Get Adobe® Illustrator® CS2 Official JavaScript Reference now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.