User Interfaces. Adobe InCopy CS6

Add to My manuals
105 Pages

advertisement

User Interfaces. Adobe InCopy CS6 | Manualzz

5

User Interfaces

CS6

Chapter Update Status

Unchanged

JavaScript can create dialog boxes for simple yes/no questions and text entry, but you probably will need to create more complex dialog boxes for your scripts. InCopy scripting can add dialog boxes and can populate them with common user-interface controls, like pop-up lists, text-entry fields, and numeric-entry fields. If you want your script to collect and act on information entered by you or any other user of your script, use the dialog

object.

This chapter shows how to work with InCopy dialog scripting. The sample scripts in this chapter are presented in order of complexity, starting with very simple scripts and building toward more complex operations.

N OTE : InCopy scripts written in JavaScript also can include user interfaces created using the Adobe ScriptUI component. This chapter includes some ScriptUI scripting tutorials; for more information, see Adobe

Creative Suite ® 3 JavaScript Tools Guide .

We assume that you have already read

Chapter 2, “Getting Started”

and know how to create, install, and run a script.

Dialog-box overview

An InCopy dialog box is an object like any other InCopy scripting object. The dialog box can contain several different types of elements (known collectively as “widgets”), as shown in the following figure: dialog dialog column static text border panel checkbox control radiobutton group radiobutton control measurement editbox dropdown

60

advertisement

Related manuals

Download PDF

advertisement

Table of contents