beautypg.com

Site.canmakeeditable(), Site.canmakenewfileorfolder(), Site.canopen() – Adobe Dreamweaver API Reference CS5 User Manual

Page 529

background image

524

DREAMWEAVER API REFERENCE

Enablers

Last updated 8/27/2013

A Boolean value. The Boolean value is returned if the first argument is the keyword

remote

and the second

argument is a URL. The Boolean value indicates:

Whether the document belongs to a site for which a remote site has been defined.

Whether the hard drive is mounted, if the server type is Local/Network.

A Boolean value that indicates whether both windows contain site files and whether the selection is in the opposite
pane from the argument. The Boolean value is returned if the second argument is the keyword

site.

site.canMakeEditable()

Availability
Dreamweaver 3.

Description
Checks whether Dreamweaver can perform a Turn Off Read Only operation.

Arguments
None.

Returns
A Boolean value:

true

if Dreamweaver can perform a Turn Off Read Only operation;

false

if one or more of the

selected files is locked.

site.canMakeNewFileOrFolder()

Availability
Dreamweaver 3.

Description
Checks whether Dreamweaver can perform a New File or New Folder operation in the Site panel.

Arguments
None.

Returns
A Boolean value:

true

if any files are visible in the selected pane of the Site panel;

false

otherwise.

site.canOpen()

Availability
Dreamweaver 3.

Description
Checks whether Dreamweaver can open the files or folders that are currently selected in the Site panel.