Microsoft Word Suite
79
To add a check box form field, use the make command with the form field class. The following
example adds a check box at the beginning of the active document, sets the name to "Color", and
then selects the check box.
set myFF to make new form field at active document with properties ¬
{text object:text object of selection, form field type:field form ¬
check
box}
set name of myFF to "Color"
set check box value of check box of myFF to true
Properties
auto size
True if the check box size is determined by the font size of the surrounding text. False if the
check box size is determined by the checkbox size property. Read/write.
check box default
Returns or sets the default check box value. True if the default value is checked. Read/write.
check box value
True if the check box is selected. Read/write.
checkbox size
Returns or sets the size (in points) of the specified check box. Setting this property sets the auto
size property to false. Read/write.
valid
True if the specified form field object is a valid check box form field, drop-down form field, or
text form field. False if it isn't valid. Read-only.
Class: custom label
Plural
custom labels
Represents a custom mailing label. The custom labels list contains all the custom mailing labels
listed in the Label Options dialog box.
Use custom label index, where index is the custom label name or index number, to return a single
custom label object. The following example creates a new document with the custom label layout
named "My Labels."
set ML to mailing label object
if valid of custom label "My Labels" of ML is true then
create new mailing label document ML name "My Labels"
else
display dialog "The My Labels custom label is not available"
end if