Adobe 65009333 Scripting Guide - Page 55
User Interfaces, Dialog-box overview
UPC - 883919155852
View all Adobe 65009333 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 55 highlights
5 User Interfaces 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. NOTE: 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 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 The items in the figure are defined in the following table: 55