Is the description of the alert function given in the Adobe FrameMaker Scripting Guide, release 2017-01-31, always up to date?
For any type value in the range from 0 to 5, only OK button is shown.
The example of alert function js code shown below use always and only OK button.
The syntax of alert function in this example uses three parameters : message, title and type.
It is good to know that the message parameter allows to define a title for the alert box.
But is the third type parameter always read and used by alert function?
var alertname = "Update all Text-Insets in a FM Template";
// If the active document is valid then ...
if (doc.ObjectValid() == true)
ti = doc.FirstTiInDoc;
while (ti.ObjectValid () == 1)
alert ("Script execution is completed!\nAll Text Insets have been updated.", alertname, Constants.FF_ALERT_CONTINUE_NOTE);
alert ("No FM Template file is selected.", alertname, Constants.FF_ALERT_CANCEL_DEFAULT);
Do you have any opinion or applicable and useful documentation on this subject?
It's explained in detail.
Alert ("Script execution is completed!\nAll Text Insets have been updated.", Constants.FF_ALERT_CONTINUE_NOTE);
...that is, I don't know why you put 'alertname' in there.