Global Alert Function; Global Confirm Function - Adobe 27510753 - InDesign CS2 - PC Manual

Scripting guide
Hide thumbs Also See for 27510753 - InDesign CS2 - PC:
Table of Contents

Advertisement

64
Using ExtendScript Tools and Features
These dialogs are customizable to a small degree. The appearance is platform specific.

Global alert function

alert
alert (message[, title, errorIcon]);
message
title
errorIcon
Examples
This figure shows simple alert dialogs in Windows and Mac OS.
This figure shows alert dialogs with error icons.
Global confirm function
confirm
confirm (
title
,
message
noAsDflt
title
The string for the displayed message.
Optional. A string to appear as the title of the dialog, if the platform supports a title. Mac
OS does not support titles for alert dialogs. The default title string is "Script Alert".
Optional. When true , the platform-standard alert icon is replaced by the platform-stan-
dard error icon in the dialog. Default is false .
message
noAsDflt
[,
]);
The string for the displayed message.
Optional. When true , the No button is the default choice, selected when
the user types Enter. Default is false , meaning that Yes is the default
choice.
Optional. A string to appear as the title of the dialog, if the platform sup-
ports a title. Mac OS does not support titles for confirmation dialogs. The
default title string is "Script Alert".
Displays a platform-standard dialog containing a short
message and an OK button. Returns undefined .
Displays a platform-standard dialog containing a short
message and two buttons labeled Yes and No. Returns
if the user clicked Yes, false if the user clicked No.
true
Adobe InDesign CS2 Scripting Guide

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Indesign cs2

Table of Contents