Adobe 65024872 - InDesign CS4 - Mac Manual page 21

Scripting guide
Hide thumbs Also See for 65024872 - InDesign CS4 - Mac:
Table of Contents

Advertisement

Adobe InDesign CS4 Scripting Tutorial
VBScript
To view the InDesign object model, you need a VBScript editor/debugger or some version of Visual Basic,
or an application that incorporates Visual Basic for Applications.
Visual
To view the object model using Visual Basic 6, follow these steps:
Basic 6
1. Create a new Visual Basic project, then choose Project > References. Visual Basic displays the Refer-
ences dialog box:
2. From the list of available references, select Adobe InDesign CS4 Type Library, and click OK. If the library
does not appear in the list of available references, click Browse and locate and select the file Resources
for Visual Basic.tlb, which is usually inside
Data\Adobe\InDesign\Version 6.0\Scripting Support\
necessary, search for the file. Once you locate the file, click Open to add the reference to your project.
3. Choose View > Object Browser. Visual Basic displays the Object Browser dialog box.
4. From the list of open libraries shown in the Project/Library menu, choose InDesign. Visual Basic dis-
plays the objects that make up the InDesign object model.
5. Click an object class. Visual Basic displays the properties and methods of the object. For more informa-
tion on a property or method, select the item; Visual Basic displays the definition of the item at the
bottom of the Object Browser window:
Scripting and the InDesign object model 21
~:\Documents and Settings\
(where
\Application
is your user name). If

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs4

Table of Contents