Illustrator VBScript Reference
Illustrator VBScript Reference
If this guide is distributed with software that includes an end user agreement, this guide, as well as the software
described in it, is furnished under license and may be used or copied only in accordance with the terms of such license.
Except as permitted by any such license, no part of this guide may be reproduced, stored in a retrieval system, or
transmitted, in any form or by any means, electronic, mechanical, recording, or otherwise, without the prior written
permission of Adobe Incorporated. Please note that the content in this guide is protected under copyright law even if it
is not distributed with software that includes an end user license agreement.
The content of this guide is furnished for informational use only, is subject to change without notice, and should not be
construed as a commitment by Adobe Incorporated. Adobe Incorporated assumes no responsibility or liability for any
errors or inaccuracies that may appear in the informational content contained in this guide.
Please remember that existing artwork or images that you may want to include in your project may be protected under
copyright law. The unauthorized incorporation of such material into your new work could be a violation of the rights of
the copyright owner. Please be sure to obtain any permission required from the copyright owner.
Any references to company names in sample templates are for demonstration purposes only and are not intended to
refer to any actual organization.
Adobe, the Adobe logo, Acrobat, Illustrator, Macromedia, and Photoshop are either registered trademarks or trademarks
of Adobe Incorporated in the United States and/or other countries.
Macintosh is a trademark of Apple Computer, Incorporated, registered in the United States and other countries. Windows
is either a registered trademark or trademark of Microsoft Corporation in the United States and other countries.
JavaScript and all Java-related marks are trademarks or registered trademarks of Sun Microsystems, Incorporated in the
United States and other countries.
Adobe Incorporated, 345 Park Avenue, San Jose, California 95110, USA. Notice to U.S. Government End Users. The
Software and Documentation are “Commercial Items,” as that term is defined at 48 C.F.R. §2.101, consisting of
“Commercial Computer Software” and “Commercial Computer Software Documentation,” as such terms are used in 48
C.F.R. §12.212 or 48 C.F.R. §227.7202, as applicable. Consistent with 48 C.F.R. §12.212 or 48 C.F.R. §§227.7202-1 through
227.7202-4, as applicable, the Commercial Computer Software and Commercial Computer Software Documentation are
being licensed to U.S. Government end users (a) only as Commercial Items and (b) with only those rights as are granted
to all other end users pursuant to the terms and conditions herein. Unpublished-rights reserved under the copyright
laws of the United States. Adobe Incorporated, 345 Park Avenue, San Jose, CA 95110-2704, USA. For U.S. Government End
Users, Adobe agrees to comply with all applicable equal opportunity laws including, if appropriate, the provisions of
Executive Order 11246, as amended, Section 402 of the Vietnam Era Veterans Readjustment Assistance Act of 1974 (38
USC 4212), and Section 503 of the Rehabilitation Act of 1973, as amended, and the regulations at 41 CFR Parts 60-1
through 60-60, 60-250, and 60-741. The affirmative action clause and regulations contained in the preceding sentence
shall be incorporated by reference.
Contents
3
Contents 4
GradientColor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Gradients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
GradientStop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
GradientStops . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
GraphicStyle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
GraphicStyles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
GraphItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
GraphItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
GrayColor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
GridRepeatConfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
GridRepeatItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
GridRepeatItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
AiGridRepeatUpdate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
GroupItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
GroupItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
IllustratorSaveOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
ImageCaptureOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Ink . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
InkInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
InsertionPoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
InsertionPoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
LabColor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Layers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
LegacyTextItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
LegacyTextItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
MeshItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
MeshItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
NoColor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
NonNativeItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
NonNativeItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
OpenOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
PageItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
PageItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Paper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
PaperInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Contents 5
ParagraphAttributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Paragraphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
ParagraphStyle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
ParagraphStyles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
PathItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
PathItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
PathPoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
PathPoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
Pattern . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
PatternColor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
Patterns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
PDFFileOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
PDFSaveOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
PhotoshopFileOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
PlacedItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
PlacedItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
PluginItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
PluginItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
PPDFile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
PPDFileInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
PrintColorManagementOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
PrintColorSeparationOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
PrintCoordinateOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
Printer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
PrinterInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
PrintFlattenerOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
PrintFontOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
PrintJobOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
PrintOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192
PrintPageMarksOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
PrintPaperOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
PrintPostScriptOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
RadialRepeatConfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 198
RadialRepeatItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
RadialRepeatItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 200
AiRadialRepeatUpdate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
RasterEffectOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
Contents 6
RasterItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
RasterItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207
RasterizeOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209
RGBColor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
ScreenInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
ScreenSpotFunction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
Spot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
SpotColor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Spots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Stories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
Story . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Swatch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
Swatches . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
SwatchGroup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
SwatchGroups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
Symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
SymbolItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
SymbolItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
SymmetryRepeatConfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
SymmetryRepeatItem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 234
SymmetryRepeatItems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
AiSymmetryRepeatUpdate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
TabStopInfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
Tag . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
Tags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239
TextFont . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 240
TextFonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
TextFrame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
TextFrames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
TextPath . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
TextRange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
TextRanges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
TracingObject . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
TracingOptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
Variable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
Contents 7
View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
This reference section describes the objects and methods in the Illustrator VBScript type library. All of the
classes in the type library are presented alphabetically. The chapter concludes with an enumerations
reference which lists all of the enumerations in the Illustrator type library.
Properties of the class — These include value type, read-only status, and an explanation.
Methods for the class — Value types needed by the method are shown in bold face. Enumerated
values are linked to the Chapter 2, “Enumerations Reference.” Required terms are shown in plain face.
All items surrounded by brackets ([ ]) are optional.
Script examples — These example are intended to illustrate concepts, and do not necessarily
represent the best or most efficient way to construct a VBScript script. They contain little error
checking, and assume that the proper context exists for the scripts to execute in (for instance, that
there is a document open or items selected).
Each script contains a single subroutine that can be pasted into any event in a VBScript form if you are
using the VBScript development environment. A standard button click event is used for all examples. If
you are using a built-in VBScript editor in a VBA application, you can paste the script into a macro
routine. In either case, modify the Sub statement in the example to work with your situation.
For an overview of how the Illustrator object model is structured, see Adobe Illustrator 2025 Scripting Guide.
8
CHAPTER 1: VBScript Object Reference Application 9
Application
The Adobe Illustrator application object, which contains all other Illustrator objects.
Application properties
Application methods
Opening a document
In Illustrator, the application’s Selection can be accessed as well as modified. The selection will contain
Empty when there are no selected objects. To deselect all objects in the current document, set the
selection to Empty, as the following example shows.
Set appRef = CreateObject("Illustrator.Application")
appRef.activeDocument.Selection = Empty
A reference to a text range is returned when there is an active insertion point in the contents of a
TextFrame. Similarly, a reference to a range of text is returned when characters are selected in the
contents of a TextFrame.
Executing an action
You can run an action from the Action Palette from a script by using the DoScript method. When you do
this, the control returns to your script before the action has completed. Use the ActionIsRunning
property to test for when the action has completed before executing any other VBScript methods (see the
Windows.DoAction example). You can also use the Sleep method defined on the WScript object to insert
a pause to test this property, as in the following example:
Set appRef = CreateObject("Illustrator.Application")
appRef.DoScript "Opacity 60 (selection)", "Default Actions"
WHILE(appRef.ActionIsRunning)
WScript.sleep 1000
WEND
msgbox "Done"
Invoking JavaScript
DoJavaScript and DoJavaScriptFile can be used to invoke scripts written in JavaScript for Illustrator.
The first argument to DoJavaScript is a string that must evaluate to a valid JavaScript expression. For
example, the following script displays an alert using the JavaScript alert method.
appRef.DoJavaScript "alert(
This script uses the application property ActiveDocument to copy the current document’s selection to the
clipboard before pasting it into our new document. This script also demonstrates how to create a new
document with a specific color space and dimensions.
'Duplicates the selected item in the current document to a new document
Artboard
An Artboard object represents a single artboard in a document. There can be between 1 to 100 artboards
in one document.
Artboard properties
Artboard methods
Artboards
A collection of artboards.
Artboards properties
Artboards methods
GetActiveArtboardIndex Long Retrieves the index position of the active artboard in the
() document
GetByName Artboard Retrieves an artboard object from the list by its unique
(artboardName as String) identifying name.
Index Long Returns the index position of the object within the
(item as DataSets) collection.
Insert Nothing Creates a new artboard object and inserts it at the given
(rect as ArtboardRect, index in the list.
index as Long)
Remove Nothing Deletes an artboard object. You cannot remove the last
(index as Long) artboard in a document.
SetActiveArtboardIndex Nothing Makes a specific artboard active and makes it current in
(index as Long) the iteration order.
CHAPTER 1: VBScript Object Reference AutoCADFileOptions 18
AutoCADFileOptions
Options for opening an AutoCAD drawing, used with the Open method.
AutoCADFileOptions properties
Brush
A brush in an Illustrator document. Illustrator brushes can be accessed, but not created or deleted, from a
script.
Brush properties
Brush methods
Applying a Brush
'Creates a new group, adds a duplicate of each selected item to the group
'then applies a brush to each item in the group
Brushes
A collection of brushes in a document.
Brushes properties
Brushes methods
CharacterAttributes
Specifies the properties of a character contained in a text frame. A CharacterStyle object associates
attributes with a text range. See “CharacterStyle” on page 27.
NOTE: Character attributes do not have default values and are undefined until explicitly set.
CharacterAttributes properties
dSize = 100
iCount = textRef.Characters.Count
i = 1
Dim charRef
Do While (i < (iCount + 1))
dSize = dSize * 1.1
textRef.TextRange.Characters(i).CharacterAttributes.HorizontalScale = dSize
textRef.TextRange.Characters(i).CharacterAttributes.VerticalScale = dSize
i = i + 1
Loop
CHAPTER 1: VBScript Object Reference Characters 25
Characters
A collection of TextRange objects in which each represents a single character.
Characters properties
Characters methods
Counting characters
'Counts the number of characters in the current document
'and stores the result in numChars
CharacterStyle
A named style that specifies character attributes. For an example, see CharacterStyles.
CharacterStyle properties
CharacterStyle methods
CharacterStyles
A collection of character styles.
CharacterStyles properties
CharacterStyles methods
CMYKColor
A CMYK color specification, used to apply a CMYK color to a layer or art item.
If the color space of a document is RGB and you specify the color value for a page item in that document
using CMYK, Illustrator translates the CMYK color specification into an RGB color specification. The same
thing happens if the document’s color space is CMYK and you specify colors using RGB. Since this
translation can lose information, you should specify colors using the class that matches the document’s
actual color space.
CMYKColor properties
newCMYKColor.Black = 0
newCMYKColor.Cyan = 30.4
newCMYKColor.Magenta = 32
newCMYKColor.Yellow = 0
frontPath.Filled = True
frontPath.fillColor = newCMYKColor
CHAPTER 1: VBScript Object Reference Color info 31
Color info
An abstract parent class for all color classes used in Illustrator. Subclasses are:
CMYKColor
GradientColor
GrayColor
LabColor
NoColor
PatternColor
RGBColor
SpotColor
CHAPTER 1: VBScript Object Reference CompoundPathItem 32
CompoundPathItem
Compound paths are objects composed of multiple intersecting paths, resulting in transparent interior
spaces where the original paths overlapped. The PathItems property provides access to the paths that
make up the compound path.
All paths in a compound path share property values. Therefore, if you set the value of a property of any one
of the paths in the compound path, all other paths’ matching property will be updated to the new value.
Paths contained within a compound path or group in a document are returned as individual paths when a
script asks for the paths contained in the document. However, paths contained in a compound path or
group are not returned when a script asks for the paths in a layer which contains the compound path or
group.
CompoundPathItem properties
CompoundPathItem methods
This example demonstrates how to select all of the paths in a document that are not part of a compound
path or a group by testing the type of the Parent property with a TypeName function.
'Selects path items in the current document that are not
'compound paths
This example demonstrates how to create a new compound path containing three PathItems. The
example then modifies the stroke of the paths in the compound path. Note that when you modify the
properties of a PathItem inside a compound path you affect all paths contained in the compound path.
The example also shows how to access swatches in a document by name.
'Creates a new compound path item, adds 3 new
'path items, then sets the stroke of the compound path
CompoundPathItems
A collection of compound paths.
CompoundPathItems properties
CompoundPathItem methods
DataSet
A set of data used for dynamic publishing. A dataset allows you to collect a number of variables and their
dynamic data into one object. To create a DataSet object, you must have at least one variable bound to an
art item.
For more information, see the Variable class and the section on “Dynamic Objects and Symbols” in Adobe
Illustrator 2025 Scripting Guide.
DataSet properties
DataSet methods
DataSets
A collection of DataSet objects.
DataSets properties
DataSets methods
Index Long Returns the index position of the object within the collection.
(item as DataSets)
Creating datasets
'Creates two variables (visibility and text),
'creates two datasets using different variable
'values then displays each dataset
'Create dataset 1
Set ds1 = docRef.DataSets.Add()
'Display datasets
ds1.Display
ds2.Display
CHAPTER 1: VBScript Object Reference Document 41
Document
An Illustrator document. Documents are contained in the Application object.
The default document settings—those properties starting with the word “Default”—are global settings
that affect the current document. Be sure to modify these default properties only when a document is
open. Note that if you set default properties to desired values before creating new objects, you can
streamline your scripts, eliminating the need to specify properties such as FillColor and Stroked that
have analogous default properties.
A document’s DocumentColorSpace, Height, and Width can be set only when the document is created.
Once a document is created, these properties cannot be changed.
Document properties
Document methods
FullScre
enWithMe
nuMode
FullScre
enNoMenu
Mode
Presenta
tionMode
CHAPTER 1: VBScript Object Reference Document 47
PixelPre
view
DefaultP
review
Closing documents
If you close the document, you should set your document reference to Nothing to prevent your script
accidentally trying to access closed documents.
'Closes the frontmost document without saving
If (appRef.Documents.Count = 0) Then
Set frontDocument = appRef.Documents.Add
Else
Set frontDocument = appRef.Documents(1)
End If
frontDocument.DefaultFilled = False
frontDocument.DefaultStroked = False
CHAPTER 1: VBScript Object Reference Documents 50
Documents
A collection of documents.
Documents properties
Documents methods
DocumentPreset
A preset document template to use when creating a new document with AddDocument.
DocumentPreset properties
EPSSaveOptions
Options that may be supplied when saving a document as an Illustrator EPS file. EPSSaveOptions can be
supplied only in conjunction with the document SaveAs method. All properties are optional.
EPSSaveOptions properties
Saving to EPS
'Saves the current document to dest in EPS format
'dest contains the full path and file name to save to
ExportForScreens
Options that may be supplied when exporting a document/asset(s)/artboard(s).
ExportForScreensType
withOptions Any Options for the file type specified. For further information,
please refer to ExportOptionsJPEG, ExportOptionsPNG24,
ExportOptionsPNG8, ExportOptionsSVG
ExportForScaleType
ExportOptionsAutoCAD
Options for exporting a document as an AutoCAD file, used with the Document Export method. All
properties are optional.
When you export a document, the default file extension (DWG) is appended automatically. You should not
include a file extension in the file specification. To override the default AutoCAD export format, use the
ExportFileFormat property.
ExportOptionsAutoCAD properties
ExportOptionsGIF
Options that may be supplied when exporting a document as a GIF file. See the Document Export method
for additional details.
When you export a document, the appropriate file extension is appended automatically. You should not
include a file extension in the file specification.
ExportOptionsGIF properties
Exporting as GIF
'Exports the current document as GIF to dest
'dest contains the full path and file name to save to
ExportOptionsJPEG
Options that may be supplied when exporting a document as a JPEG file. See the Document Export
method for additional details.
When you export a document, the appropriate file extension is appended automatically. You should not
include a file extension in the file specification.
ExportOptionsJPEG
Exporting to JPEG
'Exports the current document as JPEG to dest
'dest contains the full path and file name to save to
ExportOptionsPhotoshop
Options that may be supplied when exporting a document as an Adobe Photoshop® file. See the
Document Export method for additional details.
When you export a document, the appropriate file extension is appended automatically. You should not
include a file extension in the file specification.
ExportOptionsPhotoshop properties
Exporting to Photoshop
This example exports the current document as a Photoshop 5 file with layers.
'Exports the current document as PSD (Photoshop) to dest
'dest contains the full path and file name to save to
ExportOptionsPNG8
Options that may be supplied when exporting a document as an 8-bit PNG file. See the Document Export
method for additional details.
When you export a document, the appropriate file extension is appended automatically. You should not
include a file extension in the file specification.
ExportOptionsPNG8 properties
Exporting to PNG8
ExportOptionsPNG24
Options that may be supplied when exporting a document as a 24-bit PNG file. See the Document Export
method for additional details.
When you export a document, the appropriate file extension is appended automatically. You should not
include a file extension in the file specification.
ExportOptionsPNG24 properties
Exporting to PNG24
This example exports the current document as a PNG24 file with specific options.
'Exports current document as PNG24 to dest
'dest contains the full path and file name to save to
ExportOptionsSVG
Options that may be supplied when exporting a document as a SVG file. See the Document Export method
for additional details.
When you export a document, the appropriate file extension is appended automatically. You should not
include a file extension in the file specification.
ExportOptionsSVG properties
Exporting to SVG
'Exports the current document as SVG to dest
'dest contains the full path and file name to save to
ExportOptionsTIFF
Options that may be supplied when exporting a document as a TIFF file. See the Document Export method
for additional details.
When you export a document, the appropriate file extension is appended automatically. You should not
include a file extension in the file specification.
ExportOptionsTIFF properties
ExportOptionsWebP
Options for exporting a document as a WebP fileSee the Document Export method for additional details.
When you export a document, the appropriate file extension is appended automatically. You should not
include any file extension in the file specification.
ExportOptionsWebP properties
FreeHandFileOptions
Options for opening a FreeHand file.
FreeHandFileOptions properties
FXGSaveOptions
Specifies options which may be supplied when saving a document as an FXG file. All properties are
optional.
FXGSaveOptions properties
Gradient
A gradient definition contained in a document. A script can create new gradients.
Gradient properties
Gradient methods
startColor.Red = 0
startColor.Green = 100
startColor.Blue = 255
endColor.Red = 220
endColor.Green = 0
endColor.Blue = 100
locationSpecification.RampPoint = 30
locationSpecification.MidPoint = 60
locationSpecification.Color = startColor
GradientColor
A gradient color specification, used in conjunction with the Gradient property of the Color specification.
A script can create a GradientColor using a reference to an existing gradient in the application. If no
existing gradient object is referenced, a default gradient is supplied. An origin is used to specify the center
point of the gradient in this specific gradient color. Single values are used to specify the gradient vector
angles and lengths. A matrix may be specified to further transform the gradient color.
GradientColor properties
firstGradient.GradientStops(1).Color = startColor
CHAPTER 1: VBScript Object Reference Gradients 75
Gradients
A collection of Gradient objects in a document.
Gradients properties
Gradients methods
Index Long Returns the index position of the object within the collection.
(item as Gradient)
Removing a gradient
'Deletes the first gradient in the current document
GradientStop
A gradient stop definition contained in a specific gradient. Represents a point on a gradient that specifies a
color change. For an example, see GradientColor.
GradientStop properties
GradientStop methods
GradientStops
A collection of GradientStop objects in a specific gradient.
GradientStops properties
GradientStops methods
Index Long Returns the index position of the object within the
(item as GradientStop) collection.
Item GradientStop Returns an object reference to the object identified by
(itemKey) itemKey (name or index).
'Set the values of the new gradient stop. move the original
'last gradient stop a bit to the left, and
'insert the new gradient stop at the old gradient stop's position
newStop.RampPoint = lastStop.RampPoint
lastStop.RampPoint = lastStop.RampPoint - 10
GraphicStyle
Each graphic style defines a set of appearance attributes that you can apply to PageItem objects. Graphic
styles are contained in documents. Scripts cannot create new graphic styles.
GraphicStyle properties
GraphicStyle methods
MergeTo Nothing Merges this style into the current styles of a specified art item.
(artItem as PageItem)
This example duplicates and groups the current selection, applying the second graphic style in the
document to the items in the group.
'Creates a new group item, adds a duplicate of each
'selected item to the group then applies a graphic style
'to the group
GraphicStyles
A collection of graphic styles in a document.
GraphicStyles properties
GraphicStyles methods
GraphItem
A graph artwork item. Scripts cannot create new graph items.
GraphItem properties
Position Variant Array of The position (in points) of the top left corner of the
2 Doubles item in the format [x, y]. Does not include stroke
weight.
Selected Boolean If true, this GraphItem is selected.
CHAPTER 1: VBScript Object Reference GraphItem 82
Top Double The position of the top of the item (in points,
measured from the bottom of the page).
URL String The value of the Adobe URL tag assigned to this
GraphItem.
WrapInside Boolean If true, the text frame object is wrapped inside this
object.
WrapOffset Double The offset to use when wrapping text around this
object.
Wrapped Boolean If true, wrap text frame objects around this object
(text frame must be above the object).
ZOrderPosition Long Read-only. The position of this GraphItem within the
stacking order of the GroupItem or Layer (Parent)
that contains the GraphItem.
GraphItem methods
GraphItems
A collection of GraphItem objects.
GraphItems properties
GraphItems methods
GrayColor
A grayscale color specification used to apply a gray color to a layer or art item.
GrayColor properties
firstWord.CharacterAttributes.fillColor = textColor
CHAPTER 1: VBScript Object Reference GridRepeatConfig 87
GridRepeatConfig
Specifies grid repeat art configuration options.
GridRepeat properties
GridRepeatItem
Specifies grid repeat item options.
GridRepeatItem properties
GridRepeatItem methods
GridRepeatItems
Specifies a collection of grid repeat items.
GridRepeatItems properties
GridRepeatItems methods
AiGridRepeatUpdate
Represents which property of grid repeat gets updated.
GridRepeatUpdate properties
GroupItem
A grouped set of art items. Group items can contain all of the same page items that a layer can contain,
including other nested groups.
Paths contained within a group or compound path in a document are returned as individual paths when a
script asks for the paths contained in the document. However, paths contained in a group or compound
path are not returned when a script asks for the paths in a layer which contains the group or compound
path.
GroupItem properties
Position Variant Array of The position (in points) of the top left corner of the
2 Doubles item in the format [x, y]. Does not include stroke
weight.
RasterItems RasterItems Read-only. The RasterItems contained in this
GroupItem.
Top Double The position of the top of the item (in points,
measured from the bottom of the page).
URL String The value of the Adobe URL tag assigned to this
GroupItem.
GroupItem methods
Creating a group
It is easy to modify all of the objects contained in a group. This example demonstrates how to simplify your
operations on multiple objects by creating a group to contain them.
'Creates a new group in the current document, containing
'a path item, and a text item
GroupItems
A collection of GroupItem objects.
GroupItems properties
GroupItems methods
Index Long Returns the index position of the object within the
(item as GroupItem) collection.
Item GridRepeat Returns an object reference to the object identified by
(itemkey) Config itemkey (name or index).
The following script shows how you can import a JPEG document using the CreateFromFile function.
Before running this script you have to create a one-page PDF file and put it in the location.
C:\temp\AiExport.jpg.
IllustratorSaveOptions
Options that can be supplied when saving a document as an Illustrator file with the document SaveAs
method.
IllustratorSaveOptions properties
This example illustrates how to save the frontmost document as Illustrator 8 format. Because the
document is saved as a version earlier than 9, the example specifies how to convert opacity by breaking
paths up in to sub-paths to preserve the appearance of the illustration.
'Saves current document in Illustrator format to dest with certain options
'specified in the script, dest contains the full path and file name to save to
ImageCaptureOptions
Options for image capture, used with the ImageCapture method. All properties are optional.
ImageCaptureOptions properties
Ink
Provides information about the ink name and related information.
Ink properties
InkInfo
Specifies ink properties.
InkInfo properties
InsertionPoint
A location between characters, used to insert new text objects. An insertion point is contained in an
InsertionPoints collection.
InsertionPoint properties
InsertionPoints
A collection of InsertionPoint objects.
InsertionPoints properties
InsertionPoints methods
i = 2
Do While (i < textRef.InsertionPoints.Count)
textRef.InsertionPoints(i).Characters.Add (" ")
i = i + 2
Loop
CHAPTER 1: VBScript Object Reference LabColor 104
LabColor
A color specification in the CIE Lab color space, used where a color info object is required.
LabColor properties
Layer
A layer in an Illustrator document. Layers may contain nested layers, which are called sublayers in the user
interface.
Layer object contains all of the page items in the layer as elements. Your script can access PageItems as
elements of either the Layer object or as elements of the Document object. Only those page items in that
layer can be accessed through the Layer object. To see page items in different layers, access them through
the document.
Layer properties
Layer methods
Layers
A collection of Layer objects.
Layers properties
Layers methods
Index Long Returns the index position of the object within the collection.
(item as Layer)
Deleting layers
'Deletes all layers containing a specified string in their name
LegacyTextItem
A text object created in Illustrator CS (version 10) or earlier, which is uneditable until converted. To convert
legacy text, see ConvertToNative.
You can view, move, and print legacy text, but you cannot edit it. Legacy text has an “x” through its
bounding box when selected.
LegacyTextItem properties
Position Variant Array of The position (in points) of the top left corner of the item
2 Doubles in the format [x, y]. Does not include stroke weight.
CHAPTER 1: VBScript Object Reference LegacyTextItem 110
LegacyTextItem methods
LegacyTextItems
A collection of LegacyText items.
LegacyTextItems properties
LegacyTextItems methods
Lines
A collection of TextRange objects corresponding to a line of text.
Lines properties
Lines methods
Counting lines
'Creates an area text item, adds some text, resizes
'the width of the path item containing the text item
'then counts the number of lines and stores in lineCount
Matrix
A transformation matrix specification, used to transform the geometry of objects.
Matrices are used in conjunction with the Transform method and as a property of a number of objects.
You can generate an original matrix using the Application methods getIdentityMatrix,
getTranslationMatrix, getScaleMatrix, or getRotationMatrix. If you need to apply multiple
transformations to objects, it is more efficient to use the matrix suite than to apply the transformations
one at a time.
A Matrix is a record containing the matrix values, not a reference to a matrix object. The matrix
commands listed above operate on the values of a matrix record. If a command modifies a matrix, a
modified matrix record is returned as the result of the command. The original matrix record passed to the
command is not modified.
Matrix properties
'Move art half an inch to the right and 1.5 inch up on the page
Set moveMatrix = appRef.GetTranslationMatrix(72 * 0.5, 72 * 1.5)
'Add a rotation to the translation -- 10 degrees counterclockwise
Set totalMatrix = appRef.ConcatenateRotationMatrix(moveMatrix, 10)
MeshItem
A gradient mesh art item. Mesh items cannot be created from a script, but can be copied and pasted.
MeshItem properties
WrapInside Boolean If true, the text frame object are wrapped inside this
object.
WrapOffset Double The offset to use when wrapping text around this
object.
Wrapped Boolean If true, wrap text frame objects around this object
(text frame must be above the object).
ZOrderPosition Long Read-only. The position of this art item within the
stacking order of the group or layer (Parent) that
contains the art item.
MeshItem methods
MeshItems
A collection of gradient mesh art items.
MeshItems properties
MeshItems methods
The other document can be empty. Make the empty document the frontmost before running the
script.
'Copies all mesh items from one document
'to another, with an offset position
'Get a reference to the item that was just copied into the document
targetSelection = appRef.selection
If (IsEmpty(targetSelection)) Then
CHAPTER 1: VBScript Object Reference MeshItems 119
Exit For
End If
Set newMeshItem = targetSelection(0)
NoColor
Represents the “none” color. Assignment of a reference to a NoColor object to the document’s default fill
or stroke color, or those of an art item, is equivalent to setting their Filled or Stroked property to False.
NoColor properties
NonNativeItem
A non-native artwork item.
NonNativeItem properties
This class inherits all properties of the page item class.
NonNativeItem methods
NonNativeItems
A collection of non-native items.
NonNativeItems properties
NonNativeItems methods
OpenOptions
Options to use when opening files in Illustrator.
OpenOptions properties
Sub openOptions(filePath)
Set appRef = CreateObject("Illustrator.Application")
PageItem
Any art item. Every art item and group in a document is a page item. You may refer to a page item as an
element of a document, layer, or group item.
The PageItem class gives you complete access to every art item contained in an Illustrator document. The
PageItem class is the superclass of all artwork objects in a document. The CompoundPathItem, GroupItem,
MeshItem, PathItem, PlacedItem, PluginItem, RasterItem, and TextFrame classes each inherit a set of
properties from the PageItem class.
You cannot create a PageItem directly, you must create one of the specific PageItem subclasses, such as
PathItem.
PageItem properties
PageItem methods
PageItems
A collection of PageItem objects. Provides complete access to all the art items in an Illustrator document
in the following classes:
CompoundPathItem
GraphItem
GroupItem
MeshItem
NonNativeItem
PathItem
PlacedItem
RasterItem
SymbolItem
TextFrame
You can reference page items through the PageItems property in a Document, Layer, or Group. When you
access an individual item in one of these collections, the reference a page item of one of a particular type.
For example, if you use PageItems to reference a graph item, the typename value of that object is
GraphItem.
PageItems properties
PageItems methods
Before running this script, open a document that contains one or more linked images.
'Gets the file references of all placed and raster items,
'then displays them in a new document
Paper
A container for information objects about the paper to be used for printing.
Paper properties
PaperInfo
Contains information about the dimensions and imageable area of the paper to be used for printing.
PaperInfo properties
curPrinterList = appRef.PrinterList
paragraphCount = paragraphCount + 2
Next
End If
End If
textRef.Contents = sText
appRef.Redraw
}
CHAPTER 1: VBScript Object Reference ParagraphAttributes 135
ParagraphAttributes
Specifies the properties and attributes of a paragraph contained in a text frame.
NOTE: Paragraph attributes do not have default values, and are undefined until explicitly set.
ParagraphAttributes properties
Paragraphs
A collection of Paragraph objects.
Paragraphs properties
Paragraphs methods
ParagraphStyle
Associates character and paragraph attributes with a style. The style object can be used to apply those
attributes to the text in a TextFrame object.
ParagraphStyle properties
ParagraphStyle methods
ParagraphStyles
A collection of ParagraphStyle objects. See ParagraphStyle for an example.
ParagraphStyles properties
ParagraphStyles methods
PathItem
Art items such as those created using the Line, Rectangle, or Pen Tools. A path consists of path points that
define its geometry. Path points are defined either as a PathPoint object or as an x-y page coordinate pair.
The PathItem class gives you complete access to paths in Illustrator.
PathItem properties
WrapInside Boolean If true, the text frame object is wrapped inside this
object.
WrapOffset Double The offset to use when wrapping text around this
object.
Wrapped Boolean If true, wrap text frame objects around this object
(text frame must be above the object).
ZOrderPosition Long Read-only. The position of this art item within the
stacking order of the group or layer (Parent) that
contains the art item.
PathItem methods
The SetEntirePath method provides an extremely efficient way to create paths that consist of straight
lines. This script illustrates the use of the method.
'Creates 10 lines in the document then adds them as a single path item.
For index = 0 To 10
lineList(index) = Array(index * 10 + 50, (index - 5) ^ 2 * 5 + 50)
Next
PathItems
A collection of PathItem objects. The methods Ellipse, Polygon, Rectangle, RoundedRectangle, and
Star allow you to create complex PathItems using straightforward parameters. Note that Rectangle,
RoundedRectangle, and Ellipse take the Y axis first (Top), then the X axis (Left). If you do not provide any
parameters when calling these methods, default values are used.
PathItems properties
PathItems methods
Creating shapes
'Creates 5 new path items in the current document and
'applies a random graphic style to each item
PathPoint
A point on a specific path. Each path point is made up of an anchor point and a pair of handles, or control
points.
PathPoint properties
PathPoint methods
'Go through all PathPoints except the last one and set the
'left/right direction according to where the next point is
For index = 1 To (countOfPoints - 1)
Set currentPoint = firstPath.PathPoints(index)
Set nextPoint = firstPath.PathPoints(index + 1)
currentAnchorList = currentPoint.Anchor
nextAnchorList = nextPoint.Anchor
deltax = nextAnchorList(0) - currentAnchorList(0)
deltay = currentAnchorList(1) - nextAnchorList(1)
length = Sqr(deltax ^ 2 + deltay ^ 2)
PathPoints
A collection of PathPoint objects in a path.
PathPoints properties
PathPoints methods
Index Long Returns the index position of the object within the collection.
(item as PathPoint)
Pattern
An Illustrator pattern definition contained in a document. Patterns are shown in the Swatches palette.
Each pattern is referenced by a PatternColor object, which defines the pattern’s appearance.
Pattern properties
Pattern methods
PatternColor
A pattern color specification, used in conjunction with the Pattern property of the Color specification.
Pattern colors are created using a reference to an existing pattern in the document. A matrix may be
specified to further transform the pattern color.
PatternColor objects can be used in any property that takes a color info object, such as fillColor or
strokeColor.
PatternColor properties
Modifying a pattern
'Rotates each pattern in the swatch list 10 degrees
'then applies it to the first path item.
Patterns
A collection of Pattern objects in a document.
Patterns properties
Patterns methods
Index Long Returns the index position of the object within the collection.
(item as Pattern)
Removing a pattern
'Deletes a pattern from the document
PDFFileOptions
Options for opening Adobe PDF documents. This object is found in the PDFFileOptions property of the
Preferences class.
PDFFileOptions properties
Sub pdfFileOptions(filePath)
Set appRef = CreateObject("Illustrator.Application")
With appRef.Preferences.PDFFileOptions
.PageToOpen = 2
.PDFCropToBox = 5 'aiPDFBoundingBox
End With
PDFSaveOptions
Options that can be supplied when saving a document as an Adobe PDF file with the document SaveAs
method.
PDFSaveOptions properties
Saving to PDF
PhotoshopFileOptions
Options applied when opening or placing an Adobe Photoshop file.
PhotoshopFileOptions properties
Sub photoShopFileOptions(dest)
Set appRef = CreateObject("Illustrator.Application")
With appRef.Preferences.PhotoshopFileOptions
PreserveLayers = True
PixelAspectRatioCorrection = False
End With
PlacedItem
An artwork item placed in a document as a linked file. For example, an artwork item created using the File
> Place command in Illustrator or by using the Add method of the PlacedItems collection object. For
information, see “PlacedItems” on page 169.
PlacedItem properties
PlacedItem methods
PlacedItems
A collection of placed art items. See “PlacedItem” on page 165 for an example of use.
PlacedItems properties
PlacedItems methods
PluginItem
An art item created by an Illustrator plug-in such as the blend tool. Scripts can create a plug-in item using
PlacedItem.trace or RasterItem.trace, and can copy existing plug-in items using the duplicate
method, or copy and paste them, but cannot create PluginItem objects directly.
PluginItem properties
PluginItem methods
This example demonstrates how to create a new PluginItem by copying an existing PluginItem.
'Copies and pastes the first plugin item in the current
'document
PluginItems
A collection of PluginItem objects in a document.
PluginItems properties
PluginItems methods
PPDFile
Associates file information with a PostScript Printer Description (PPD) file.
PPDFile properties
PPDFileInfo
Information about a PostScript Printer Description (PPD) file.
PPDFileInfo properties
Preferences
Specifies the preferred options for AutoCAD, FreeHand, PDF, and Photoshop files.
Preferences properties
Preferences methods
PrintColorManagementOptions
Contains information used for color management of the document.
PrintColorManagementOptions properties
PrintColorSeparationOptions
Information about the color separations to be used in printing the document.
PrintColorSeparationOptions properties
separationOpts.ColorSeparationMode = 2 'aiInRIPSeparation
CHAPTER 1: VBScript Object Reference PrintColorSeparationOptions 181
docRef.PrintOut printOpts
separationOpts.ConvertSpotColors = False
separationOpts.OverPrintBlack = False
separationOpts.ColorSeparationMode = 1 'aiHostBasedSeparation
docRef.PrintOut printOpts
CHAPTER 1: VBScript Object Reference PrintCoordinateOptions 182
PrintCoordinateOptions
Information about the media and associated printing parameters.
PrintCoordinateOptions properties
coordinateOptions.Emulsion = False
coordinateOptions.Orientation = 0 'aiPortrait
coordinateOptions.HorizontalScale = 50
coordinateOptions.VerticalScale = 50
docRef.PrintOut printOptions
CHAPTER 1: VBScript Object Reference Printer 184
Printer
Associates an available printer with printer information. To request a list of printers, you must first have a
document open or an error is returned.
Printer properties
PrinterInfo
Contains all configuration information about a printer.
PrinterInfo properties
Finding printers
'Uses the PrinterList to obtain the name
'of each printer and displays it in a text frame
noFailure = True
Set appRef = CreateObject("Illustrator.Application")
textRef.Contents = sData
appRef.Redraw
textRef1.Contents = sPrintInfo
appRef.Redraw
CHAPTER 1: VBScript Object Reference PrintFlattenerOptions 187
PrintFlattenerOptions
Contains flattening options for use when Illustrator outputs artwork that contains transparency into a
non-native format.
PrintFlattenerOptions properties
PrintFontOptions
Contains information about font downloading and substitution for the fonts used for printing a document.
PrintFontOptions properties
fontOpts.DownloadFonts = 2 'aiDownloadComplete
fontOpts.FontSubstitution = 0 'aiSubstituteOblique
'print it
docRef.PrintOut printOpts
CHAPTER 1: VBScript Object Reference PrintJobOptions 190
PrintJobOptions
Contains information about how a job is to be printed.
PrintJobOptions properties
jobOptionsRef.Designation = 2 'aiAllLayers
jobOptionsRef.ReversePages = True
docRef.PrintOut printOpts
jobOptionsRef.Designation = 1 'aiVisibleLayers
jobOptionsRef.ReversePages = False
jobOptionsRef.PrintAsBitmap = True
docRef.PrintOut printOpts
jobOptionsRef.Designation = 0 'aiVisiblePrintableLayers
jobOptionsRef.File = "C:\temp\printJobTest1.ps"
docRef.PrintOut printOpts
CHAPTER 1: VBScript Object Reference PrintOptions 192
PrintOptions
Collects all information about all printing options including flattening, color management, coordinates,
fonts, and paper. Used as an argument to the PrintOut method.
PrintOptions properties
y = docRef.Height - 30
i = 1
Do While (i < 2)
Set symbolRef = docRef.Symbols(i)
Set itemRef = docRef.SymbolItems.Add(symbolRef)
itemRef.Top = y
itemRef.Left = 100
y = (y - (itemRef.Height + 10))
i = i + 1
Loop
appRef.Redraw
docRef.PrintOut printerOpts
CHAPTER 1: VBScript Object Reference PrintPageMarksOptions 194
PrintPageMarksOptions
The options for printing page marks.
PrintPageMarksOptions properties
'print it
docRef.PrintOut printerOpts
CHAPTER 1: VBScript Object Reference PrintPaperOptions 195
PrintPaperOptions
Contains information about the paper to be used in a print job.
PrintPaperOptions properties
PrintPostScriptOptions
Specifies the options to be used when printing to a PostScript printer.
PrintPostScriptOptions properties
psOpts.PostScriptLevel = 3 'aiPSLevel3
docRef.PrintOut printOpts
CHAPTER 1: VBScript Object Reference RadialRepeatConfig 198
RadialRepeatConfig
Specifies radial repeat art configuration options.
RadialRepeat properties
RadialRepeatItem
Specifies radial repeat item options.
RadialRepeatItem properties
RadialRepeatItem methods
RadialRepeatItems
Specifies a collection of radial repeat items.
RadialRepeatItems properties
RadialRepeatItems methods
AiRadialRepeatUpdate
Represents which property of radial repeat gets updated.
RadialRepeatUpdate properties
RasterEffectOptions
Specifies raster effects settings for the document. All properties are optional.
RasterEffectOptions properties
RasterItem
A bitmap art item in a document. A script can create raster items from an external file, and can create new
raster items by copying and pasting or duplicating existing raster items.
RasterItem properties
RasterItem methods
RasterItems
A collection of RasterItem objects.
RasterItems properties
RasterItems methods
Sub rasterItemCreate(jpgFilePath)
Set app = CreateObject("Illustrator.Application")
Set myDoc = app.Documents.Add()
Set myPlacedItem = myDoc.PlacedItems.Add()
myPlacedItem.File = jpgFilePath
myPlacedItem.Embed()
End Sub
CHAPTER 1: VBScript Object Reference RasterItems 208
RasterizeOptions
Specifies options that may be supplied when rasterizing artwork. All properties are optional.
RasterizeOptions properties
RGBColor
An RGB color specification, used to apply an RGB color to a layer or art item.
If the color space of a document is RGB and you specify the color value for a page item in that document
using CMYK, Illustrator will translate the CMYK color specification into an RGB color specification. The same
thing happens if the document’s color space is CMYK and you specify colors using RGB. Since this
translation can lose information, you should specify colors using the class that matches the document’s
actual color space.
RGBColor properties
This script sets the default fill color of the frontmost document to yellow using an RGB object. If the color
space of the frontmost document is CMYK, then Illustrator will regard the RGB fill color as a CMYK color
although it is specified using RGB.
'Creates a new RGB color then applies the color to the first path item
frontPath.Filled = True
frontPath.fillColor = newFillColor
CHAPTER 1: VBScript Object Reference Screen 211
Screen
Associates a color separation screen with information to be used for printing.
Screen properties
ScreenInfo
Contains information about the angle and frequency of the screen to be used for printing.
ScreenInfo properties
ScreenSpotFunction
Contains information about the screen spot function including its definition in PostScript language code.
ScreenSpotFunction properties
Spot
A custom color definition contained in a SpotColor object.
If no properties are specified when creating a new spot, default values are provided. However, if specifying
the color, you must use the same color space as the document, either CMYK or RGB. Otherwise, an error
results. When created, the spot is added to the end of the swatches list in the Swatches palette.
Spot properties
Spot methods
SpotColor
Color class used to apply the color value of a spot at a specified tint value.
SpotColor properties
Your frontmost document must already have a PathItem before you can run this script.
'Creates a new RGB color, creates a new spot color,
'sets the color of the spot to 80% of the new RGB color,
'then applies 50% of the spot color to the frontmost path item
'Apply 50% of the spot color just created to the frontmost path item,
'by creating a SpotColor object, setting its properties,
'then applying that to a path item's fill color.
Set newSpotColor = CreateObject("Illustrator.SpotColor")
newSpotColor.Spot = newSpot
newSpotColor.Tint = 50
Spots
A collection of spot colors in a document.
Spots properties
Spots methods
Index Spot Returns the index position of the object within the collection.
(item as Spot)
This script illustrates how to remove all spots defined in the frontmost document.
'Deletes all spots from the current document
Stories
A collection of Story objects. See Story for an example.
Stories properties
Stories methods
Story
A contiguous block of text as specified by a text range. A story can contain one or more text frames; if there
is more than one, the multiple text frames are linked together to form a single story.
Story properties
Swatch
A color swatch definition contained in a document. The swatches correspond to the swatch palette in the
Illustrator user interface. Additional swatches can be created either manually by a user or by a script. The
swatch can hold all types of color data (that is, pattern, gradient, CMYK, RGB, gray, and spot).
Swatch properties
Swatch methods
This script illustrates how to change the name of the fifth swatch.
'Changes the name of a swatch
Swatches
A collection of swatch objects in a document.
Swatches properties
Swatches methods
Index Long Returns the index position of the object within the
(item as Swatch) collection.
Item Swatch Returns an object reference to the object identified by
(itemKey) itemKey (name or index).
Deleting a swatch
This script illustrates how to first obtain a swatch by index and then how to delete that swatch.
'Deletes a swatch from the current document
SwatchGroup
A group of swatches.
SwatchGroup properties
SwatchGroup methods
GetAllSwatches List of Swatch Gets a list of all swatches in the swatch group.
()
CHAPTER 1: VBScript Object Reference SwatchGroups 224
SwatchGroups
A collection of swatch group objects.
SwatchGroups properties
SwatchGroups methods
Index Long Returns the index position of the object within the
(item as SwatchGroup) collection.
Item SwatchGroup Returns an object reference to the object identified by
(itemKey) itemKey (name or index).
Symbol
An art item that is stored in the Symbols palette, and can be reused one or more times in the document
without duplicating the art data. Symbols are contained in documents. Instances of Symbol in a document
are associated with SymbolItem objects, which store the art object properties.
Symbol properties
Symbol methods
SymbolItem
An art item made reuseable by adding it to the Symbols palette. A SymbolItem is linked to the Symbol
from which it was created and changes if you modify the associated Symbol object.
SymbolItem properties
SymbolItem methods
y = docRef.Height - 30
x = 50
i = 1
SymbolItems
A collection of SymbolItem objects in a document. See SymbolItem for example.
SymbolItems properties
SymbolItems methods
Symbols
A collection of symbol objects in a document.
Symbols properties
Symbols methods
Creating symbols
'Creates a path item to display each graphic style,
'then adds each item as a new symbol
iCount = docRef.GraphicStyles.Count
i = 1
Do While (i < (iCount + 1))
'create a PathItem and apply the style to it
Set styleRef = docRef.GraphicStyles(i)
Set itemRef = docRef.PathItems.Rectangle(y, 100, 20, 20)
styleRef.ApplyTo itemRef
appRef.Redraw
CHAPTER 1: VBScript Object Reference SymmetryRepeatConfig 233
SymmetryRepeatConfig
Specifies symmetry repeat art configuration options.
SymmetryRepeat properties
SymmetryRepeatItem
Specifies symmetry repeat item options.
SymmetryRepeatItem properties
SymmetryRepeatItem methods
SymmetryRepeatItems
Specifies a collection of symmetry repeat items.
SymmetryRepeatItems properties
SymmetryRepeatItems methods
AiSymmetryRepeatUpdate
Represents which property of symmetry repeat gets updated.
SymmetryRepeatUpdate properties
TabStopInfo
Information about the alignment, position, and other details for a tab stop in a ParagraphAttributes
object.
TabStopInfo properties
Tag
A tag associated with a specific art item. Tags allow you to assign an unlimited number of key-value pairs
to any item in a document.
Tag properties
Tag methods
Using tags
'Displays tag information of selected item in a text frame
'in a new document
Tags
A collection of Tag objects.
Tags properties
Tags methods
Index Long Returns the index position of the object within the collection.
(item as Tag)
Item Tag Returns an object reference to the object identified by itemKey (name
(itemKey) or index).
RemoveAll Nothing Deletes all objects in this collection.
()
This example illustrates how to mark all images in a document with a specific tag. If your script creates
temporary PageItems, you can then later look at the MyInfo tag. If it exist for a particular PageItem and its
value is OriginalItem, you know not to delete it.
'Creates name and value tags for each placed or raster
'item in the current document
'Create a new Tag with the name myInfo and the value originalItem
Set tagRef = imageArt.Tags.Add
tagRef.Name = "MyInfo"
tagRef.Value = "OriginalItem"
End If
Next
CHAPTER 1: VBScript Object Reference TextFont 240
TextFont
Information about a font in the document, found in a CharacterAttributes object.
TextFont properties
x = edgeSpacing
y = docRef.Height - edgeSpacing
iCounter = 0
For Each fontRef In appRef.TextFonts
'create the text frame
Set textRef = docRef.TextFrames.Add()
textRef.TextRange.CharacterAttributes.Size = 10
textRef.Contents = fontRef.Name + " " + fontRef.Style
textRef.Top = y
textRef.Left = x
' Check whether the new text frame has gone over the document bounds
if((x + textRef.Width) > docRef.Width) Then
' delete the text frame
textRef.Delete()
Exit For
Else
' keep the text frame
appRef.Redraw
textRef.TextRange.CharacterAttributes.TextFont =
appRef.TextFonts.Item(fontRef.Name)
y = y - textRef.Height
If (y < 20) Then
' reset y,x at bottom of page
y = docRef.Height - edgeSpacing
CHAPTER 1: VBScript Object Reference TextFont 241
x = x + columnSpacing
End If
End If
iCounter = iCounter + 1
Next
CHAPTER 1: VBScript Object Reference TextFonts 242
TextFonts
A collection of TextFont objects.
TextFonts properties
TextFonts methods
Finding a font
'Searches through the list of available fonts for the "Symbol" font
fontName = "Symbol"
foundTextFace = False
For Each fontToTest In appRef.TextFonts
If (fontToTest.Name = fontName) Then
foundTextFace = True
End If
Next
If (foundTextFace) Then
'fontName & " is installed on this machine"
Else
'fontName & " is not installed on this machine"
End If
CHAPTER 1: VBScript Object Reference TextFrame 243
TextFrame
The basic art item for displaying text. From the user interface, this is text created with the Text tool. There
are three types of text art in Illustrator: point text, path text, and area text. The type is indicated by the text
frame’s Kind property.
When you create a text frame, you also create a Story object. However, threading text frames combines the
frames into a single story object. To thread frames, use the NextFrame or PreviousFrame property.
TextFrame properties
Top Double The position of the top of the item (in points,
measured from the bottom of the page).
URL String The value of the Adobe URL tag assigned to this
item.
VisibilityVariable Variable The Variable bound to this item.
VisibleBounds Variant Array of Read-only. The visible bounds of the item
4 Doubles including stroke width.
Width Double The width of the item, based on
GeometricBounds.
TextFrame methods
'Get the parent of the text art so new text art items can be inserted
'in the same group or layer as the selected text art is in
Set textArtGroup = sourceTextArt.Parent.TextFrames
TextFrames
A collection of TextFrame objects.
TextFrames properties
TextFrames methods
'Line Text
Set lineRef = docRef.PathItems.Add()
lineRef.SetEntirePath (Array(Array(200, 700), Array(300, 550)))
Set pathTextRef = docRef.TextFrames.PathText(lineRef)
pathTextRef.Contents = "TextFrame #2"
pathTextRef.Selected = True
'Point Text
Set pointTextRef = docRef.TextFrames.Add()
pointTextRef.Contents = "TextFrame #3"
pointTextRef.Top = 700
pointTextRef.Left = 400
pointTextRef.Selected = True
appRef.Redraw
docRef.TextFrames(2).Delete
appRef.Redraw
CHAPTER 1: VBScript Object Reference TextPath 250
TextPath
A path or list of paths for area or path text. A path consists of path points that define its geometry.
TextPath properties
PathPoints PathPoints Read-only. The path points contained in this path item.
Polarity AiPolarityValues The polarity of the path.
Position Array of 2 Doubles The position (in points) of the top left corner of the
item in the format [x, y]. Does not include stroke
weight.
Resolution Double The resolution of the path in dots per inch (dpi).
SelectedPathPoints PathPoints Read-only. All of the selected path points in the path.
CHAPTER 1: VBScript Object Reference TextPath 251
TextPath methods
TextRange
A range of characters from a text item (story, text frame, character, word, line, paragraph, or another text
range).
TextRange properties
TextRange methods
TextRanges
A collection of TextRange objects.
TextRanges properties
TextRanges methods
TracingObject
A tracing object, which associates a source raster art item with a vector art plug-in group created by
tracing. Scripts can initiate tracing using PlacedItem.Trace or RasterItem.Trace. The resulting
PluginItem object represents the vector art group, and has this object in its Tracing property.
A script can force the tracing operation by calling the application’s Redraw method. The operation is
asynchronous, so a script should call Redraw after creating the tracing object, but before accessing its
properties or expanding the tracing to convert it to an art item group.
The read-only properties that describe the tracing result have valid values only after the first tracing
operation completes. A value of 0 indicates that the operation has not yet been completed.
TracingObject properties
TracingObject methods
TracingOptions
A set of options used in converting raster art to vector art by tracing.
TracingOptions properties
TracingOptions methods
Variable
A dynamic object used to create data-driven graphics. For an example, see DataSets. Variables are
accessed in Illustrator through the Variables palette. A variable is document-level object that can be
imported or exported.
Variable properties
Variable methods
Variables
A collection of Variable objects in a document.
Variables properties
V
Variables methods
Index Long Returns the index position of the object within the collection.
(item as Variable)
View
A document view in an Illustrator document, which represents a window view onto a document. Scripts
cannot create new views, but can modify some properties of existing views, including the center point,
screen mode, and zoom.
View properties
Setting a view
'Sets the view of the current document to full screen
Views
A collection of View objects in a document.
Views properties
Views methods
Item View Returns an object reference to the object identified by itemKey (name
(itemKey) or index).
CHAPTER 1: VBScript Object Reference Words 265
Words
A collection of words in a text item, where each word is a TextRange object.
Words properties
Words methods
These enumeration values are defined for object properties in the VBScript dictionary.
When defining an enumerated property’s value, use the numeric, rather than the text value of the
enumeration. For example, the following script statement, which uses the first enumeration in the
following table, AiAlternateGlyphsForm, specifies aiExpert as the constant value:
myCharacterAttributes.AlternateGlyphs = 2
NoAntiAliasing
— No
antialiasing is
allowed.
ArtOptimized
— Optimize for
the art object.
TypeOptimized
— Optimize for
the type object.
267
CHAPTER 2: Enumerations Reference 268
aiOutput-
ArtboardBounds =
Output size is the
size of the artboard.
aiOutputCrop-
RectBounds =
Output size is the
size of the drop area.
AiAutoCADColors aiMax8Colors = 0
aiMax16Colors = 1
aiMax256Colors = 2
aiTrueColors = 3
AiAutoCADCompatibility aiAutoCADRelease13 = 0
aiAutoCADRelease14 = 1
aiAutoCADRelease15 = 2
aiAutoCADRelease18 = 3
aiAutoCADRelease21 = 4
aiAutoCADRelease24 = 5
AiAutoCADExportFileFormat aiDXF = 0
aiDWG = 1
AiAutoCADExportOption aiPreserveAppearance = 0
aiMaximizeEditability = 1
AiAutoCADGlobalScaleOption aiOriginalSize = 0
aiFitArtboard = 1
aiScaleByValue = 2
AiAutoCADRasterFormat aiPNG = 0
aiJPEG = 1
AiAutoCADUnit aiPoints = 0
aiPicas = 1
aiInches = 2
aiMillimeters = 3
aiCentimeters = 4
aiPixels = 5
AiAutoKernType aiNoAutoKern = 0
aiAuto = 1
aiOptical = 2
aiMetricsRomanOnly = 3
AiAutoLeadingType aiBottomToBottom = 0
aiTopToTop = 1
CHAPTER 2: Enumerations Reference 269
AiBlendAnimationType aiNoBlendAnimation = 0
aiInSequence = 1
aiInBuild = 2
AiCaseChangeType aiUpperCase = 0
aiLowerCase = 1
aiTitleCase = 2
aiSentenceCase = 3
AiColorConversion aiColorConversionNone = 0
aiColorConversionToDest = 1
aiColorConversionRepurpose = 2
AiColorProfile aiColorProfileNone = 0
aiIncludeAllProfile = 1
aiLeaveProfileUnchanged = 2
aiIncludeRGBProfile = 3
aiIncludeDestProfile = 4
AiDownsampleMethod aiNoDownsample = 0
aiAverageDownsample = 1
aiSubsample = 2
aiBicubicDownsample = 3
AiElementPlacement aiPlaceInside = 0
aiPlaceAtBeginning = 1
aiPlaceAtEnd = 2
aiPlaceBefore = 3
aiPlaceAfter = 4
AiFigureStyleType aiDefaultFigureStyle = 0
aiTabular = 1
aiProportionalOldStyle = 2
aiProportional = 3
aiTabularOldStyle = 4
CHAPTER 2: Enumerations Reference 273
AiFontCapsOption aiNormalCaps = 0
aiSmallCaps = 1
aiAllCaps = 2
aiAllSmallCaps = 3
AiFontOpenTypePositionOption aiOpenTypeDefault = 0
aiOpenTypeSuperScript = 1
aiOpenTypeSubScript = 2
aiNumerator = 3
aiDenominator = 4
AiFontSubstitutionPolicy aiSubstituteOblique = 0
aiSubstituteTint = 1
aiSubstituteDevice = 2
AiInkPrintStatus aiDisableInk = 0
aiEnableInk = 1
aiConvertInk = 2
AiInkType aiCyanInk = 0
aiMagentaInk = 1
aiYellowInk = 2
aiBlackInk = 3
aiCustomInk = 4
AiJavaScriptExecutionMode aiNeverShowDebugger = 1
aiDebuggerOnError = 2
aiBeforeRunning = 3
CHAPTER 2: Enumerations Reference 274
AiKinsokuOrderEnum aiPushIn = 0
aiPushOutFirst = 1
aiPushOutOnly = 2
AiLanguageType aiBokmalNorwegian = 8
aiBrazillianPortuguese = 11
aiBulgarian = 20
aiCanadianFrench = 3
aiCatalan = 17
aiChinese = 29
aiCzech = 22
aiDanish = 16
aiDutch = 15
aiDutch2005Reform = 43
aiEnglish = 0
aiFinnish = 1
aiGerman2006Reform = 42
aiGreek = 25
aiHungarian = 28
aiIcelandic = 27
aiItalian = 7
aiJapanese = 30
aiNynorskNorwegian =
aiOldGerman = 5
aiPolish = 23
aiRomanian = 24
aiRussian = 18
aiSpanish = 12
aiSerbian = 21
aiStandardFrench = 2
aiStandardGerman = 4
aiStandardPortuguese =
aiSwedish = 13
aiSwissGerman = 6
aiSwissGerman2006Reform = 44
aiTurkish = 26
aiUKEnglish = 14
aiUkranian = 19
AiLayerOrderType aiTopDown = 2
aiBottomUp = 1
CHAPTER 2: Enumerations Reference 275
AiPageMarksStyle aiPageMarksRoman = 0
aiPageMarksJapanese = 1
AiPDFBoxType aiPDFArtBox = 0
aiPDFCropBox = 1
aiPDFTrimBox = 2
aiPDFBleedBox = 3
aiPDFMediaBox = 4
aiPDFBoundingBox = 5
CHAPTER 2: Enumerations Reference 276
AiPDFOverprint aiPreservePDFOverprint = 1
aiDiscardPDFOverprint = 2
AiPDFPrintAllowedEnum aiPrint128None = 1
aiPrint128LowResolution = 2
aiPrint128HighResolution = 3
aiPrint40None = 4
aiPrint40HighResolution = 5
AiPDFTrimMarkWeight aiTrimMarkWeight0125 = 1
aiTrimMarkWeight025 = 2
aiTrimMarkWeight05 = 3
AiPDFXStandard aiPDFXNone = 1
aiPDFX1A2001 = 2
aiPDFX1A2003 = 3
aiPDFX32002 = 4
aiPDFX32003 = 5
aiPDFX42007 = 6
AiPerspectiveGridType aiOnePointPerspectiveGridType = 1
aiTwoPointPerspectiveGridType = 2
aiThreePointPerspectiveGridType = 3
aiInvalidPerspectiveGridType = 0
AiPerspectiveGridPlaneType aiLEFTPLANE = 1
aiRIGHTPLANE = 2
aiFLOORPLANE = 3
aiNOPLANE = 0
AiPhotoshopCompatibility aiPhotoshop8 = 1
aiPhotoshop6 = 2
AiPostScriptImageCompressionType aiImageCompressionNone = 0
aiImageCompressionRLE = 1
aiImageCompressionJPEG = 2
CHAPTER 2: Enumerations Reference 277
AiPrintColorIntent aiPerceptualIntent = 0
aiSaturationIntent = 1
aiRelativeColorimetric = 2
aiAbsoluteColorimetric = 3
AiPrintColorProfile aiOldstyleProfile = 0
aiSourceProfile = 1
aiPrinterProfile = 2
aiCustomProfile = 3
AiPrintColorSeparationMode aiComposite = 0
aiOnHostSeparation = 1
aiInRIPSeparation = 2
AiPrinterColorMode aiColorPrinter = 0
aiGrayscalePrinter = 1
aiBlackAndWhitePrinter = 2
AiPrinterPostScriptLevelEnum aiPSLevel1 = 1
aiPSLevel2 = 2
aiPSLevel3 = 3
AiPrinterTypeEnum aiUnknownPrinterType = 0
aiPostScriptPrinter = 1
aiNonPostScriptPrinter = 2
AiPrintFontDownloadMode aiDownloadNone = 0
aiDownloadSubset = 1
aiDownloadComplete = 2
AiPrintingBounds aiArtboardBounds = 0
aiArtworkBounds = 1
AiPrintOrientation aiPortrait = 0
aiLandscape = 1
aiReversePortrait = 2
aiReverseLandscape = 3
aiAutoRotate = 4
AiPrintPosition aiTranslateTopLeft = 1
aiTranslateTop = 2
aiTranslateTopRight = 3
aiTranslateLeft = 4
aiTranslateCenter = 5
aiTranslateRight = 6
aiTranslateBottomLeft = 7
aiTranslateBottom = 8
aiTranslateBottomRight = 9
AiPrintTiling aiTileSingleFullPage = 0
aiTileFullPages = 1
aiTileImageableAreas = 2
AiStyleRunAlignmentType aiAlignBottom = 0
aiICFBottom = 1
aiRomanBaseline = 2
aiAlignCenter = 3
aiICFTop = 4
aiAlignTop =5
AiTrappingType aiNormalTrapping = 0
aiTransparent = 1
aiOpaque = 2
aiIgnoreOpaque = 3
AiUserInteractionLevel aiDontDisplayAlerts = -1
aiDisplayAlerts = 2
AiWariChuJustificationType aiWariChuLeft = 0
aiWariChuRight = 1
aiWariChuCenter = 2
aiWariChuFullJustifyLastLine-
Left = 3
aiWariChuFullJustifyLastLine-
Right = 4
aiWariChuFullJustifyLastLine-
Center = 5
aiWariChuAutoJustify = 6
CHAPTER 2: Enumerations Reference 281