Chapter 6: Changes Since Earlier Versions; Changes Inthe Object Model For Illustrator Cs; Macintosh / Applescript; Windows / Com (Visual Basic, Et Al) - Adobe 26001360 - Illustrator CS - PC Manual

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

Advertisement

Changes InThe Object Model for Illustrator CS

Macintosh / AppleScript

• Properties and method return types which had been type 'string' are now 'Unicode text' .
This should only affect code which formally checks the class of the returned value.
Usability should be otherwise unaffected.
• A new no color color class has been added which when assigned to a color property
such as document or page item fill or stroke sets that attribute to not filled or stroked and
the underlying color to "none". It is used in the same way as the other color types.

Windows / COM (Visual Basic, et al)

Object model changes for COM were more extensive, with the aim to remove some awkward
contructs which were part of the initial design as well as to provide functionality such as
targeted duplicate and move which already existed in the AppleScript implementation. As a
result, some minor changes will be required to user and internal testing scripts.
• Scripting Support for Illustrator CS is installed with a new set of guids identifying itself
and its related type library and interfaces in the Windows registry. This allows scripting in
Illustrator CS to function completely independently of scripting in Illustrator 10. Each has
a unique ProgID (program ID) which, when used with the
CreateObject() method in Visual Basic, provides for explicit referencing of their
product version.
• The Illustrator.Color class has been removed. Color object creation and
assignment is now accomplished directly using the concrete color classes such as
RGBColor, CMYKColor, etc. This significantly simplifies working with color in Illustrator.
In addition, a new color class, NoColor, has been added which, when assigned to an
item's stroke or fill color denotes no color is applicable. Assigning this will also toggle the
item's Stroked or Filled property to false.
Changes Since Earlier Versions
487
6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents