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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.