EDOBE XDOM TPC Technical Information Page 10

  • Download
  • Add to my manuals
  • Print
  • Page
    / 68
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 9
CHAPTER 1: Introduction Executing scripts 10
Viewing the VBScript object model
VBScript provides a type library you can use to view Illustrator object properties and methods. This
procedure explains how to view the type library through any Microsoft Office program. Your VBScript
editor probably provides access to the library. For information see your editors Help.
1. In any Microsoft Office application, choose Tools > Macro > Visual Basic Editor.
2. In the Visual Basic Editor, choose Tools > References.
3. In the dialog that appears, select the check box for Adobe Illustrator CS5 Type Library, and click OK.
4. Choose View > Object Browser, to display the Object Browser window.
5. Choose “Illustrator” from the list of open libraries in the top-left pull-down menu of the Object
Browser window.
Several extended sample scripts are in the
/Scripting/Sample Scripts folder in your Illustrator CS5
installation directory.
You also can view script samples and information about individual classes, objects, properties, methods,
and parameters in Adobe Illustrator CS5 Scripting Reference: VBScript, which you can download from
http://www.adobe.com/devnet/illustrator/scripting/
.
Executing scripts
The Illustrator interface includes a Scripts menu (File > Scripts) that provides quick and easy access to your
scripts.
Scripts can be listed directly as menu items that run when you select them. See
Installing scripts in the
Scripts menu” on page 10.
You can navigate from the menu to any script in your file system and then run the script. See
Executing
scripts from the Other Scripts menu item” on page 11.
You also can have JavaScript scripts with a
.jsx extension start automatically when you launch the
application. For information, see
Startup scripts (.jsx scripts only)” on page 11.
Installing scripts in the Scripts menu
To include a script in the Scripts menu (File > Scripts), save the script in the Scripts folder, located in the
/Illustrator CS5/Presets folder in your Illustrator CS5 installation directory. The scripts filename,
minus the file extension, appears in the Scripts menu.
Scripts that you add to the Scripts folder while Illustrator is running do not appear in the Scripts menu until
the next time you launch Illustrator.
Any number of scripts can be installed in the Scripts menu. If you have many scripts, use subfolders in the
Scripts folder to help organize the scripts in the Scripts menu. Each subfolder is displayed as a separate
submenu containing the scripts in that subfolder.
Page view 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 67 68

Comments to this Manuals

No comments