January 20, 2000
This method enables you to display an alert dialog on the screen. The minimum required parameter is a string containing the message to be displayed. Optionally, an icon type can be specified by using the nIcon parameter. This example uses a button group type.
var answer = app.alert("Do you want to eat sardine salad?", 2, 2);
/* Question icon, Yes/No button. */
/* 0 = error, 1 = OK, 2 = Cancel, 3 = No, 4 = Yes */
if (answer == 4)
app.alert("...eat the salad...");
app.alert("...eat something else...");
OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.