
Acrobat Forms - JavaScript Object Specification
14
This method causes the system to play a sound. The various sounds and the values used are as
follows:
On Apple Macintosh and UNIX systems the beep type is ignored.
execMenuItem
Parameters: cMenuItem
Returns: nothing
This method executes the specified menu item. To find out the exact menu item name, see the
Acrobat Viewer Plug-in API On-line Reference
under § Lists: Menu item names. The menu
item name is case sensitive and has to exactly match strings in the list.
Example:
/* This example executes File->Open menu item. It will display a dialog to the
user asking for the file to be opened. */
app.execMenuItem("Open");
Note:
For security reasons, we will not allow the script to execute the SaveAs and
Close menu items. If either of those two menu items is passed as cMenuItem,
this function will do nothing.
getNthPlugInName
Parameters: nIndex
Returns: cName
This method returns the name of the Nth plug-in that has been loaded by the viewer. See also
the
numPlugIns
property.
Message Type
Value
Error (default)
0
Warning
1
Question
2
Status
3
Default
4
4.0
4.0