beautypg.com

Global application functions, Dreamweaver.beep(), Dreamweaver.getshowdialogsoninsert() – Adobe Dreamweaver API Reference CS5 User Manual

Page 120

background image

115

DREAMWEAVER API REFERENCE

Application

Last updated 8/27/2013

Example

// Launches the notepad application to edit filefoo.txt file.
dreamweaver.launchApp("file:///c:/windows/system32/notepad.exe", "c:\temp\foo.txt");
// Launches myapp with some command line arguments.
dreamweaver.launchApp("file:///c:/bin/myapp.exe", "-chrome false –print c:\temp\foo.txt");

Global application functions

Global application functions act on the entire application. They handle tasks such as quitting and accessing
Preferences.

dreamweaver.beep()

Availability
Dreamweaver MX.

Description
Creates a system beep.

Arguments
None.

Returns
Nothing.

Example
The following example calls

dw.beep()

to call the user’s attention to a message that the

alert()

function displays:

beep(){

if(confirm("Is your order complete?")
{

dreamweaver.beep();
alert("Click OK to submit your order");

}

}

dreamweaver.getShowDialogsOnInsert()

Availability
Dreamweaver 3.

Description
Checks whether the Show Dialog When Inserting Objects option is turned on in the General category of Preferences.

Arguments
None.