beautypg.com

Site.getlocalrooturl(), Site.getselection(), Site.getsiteforurl() – Adobe Dreamweaver API Reference CS5 User Manual

Page 239

background image

234

DREAMWEAVER API REFERENCE

Site

Last updated 8/27/2013

Arguments
None.

Returns
The path to the files residing on the local computer for the current site.

site.getLocalRootURL()

Availability
Dreamweaver CS4.

Description
Gets the local root folder of the site.

Arguments

siteName

The

siteName

argument is a string that specifies the name of the site.

Returns
A string that contains the local root folder of the named site, expressed as file://URL. The string is empty when the
specified site does not exist.

site.getSelection()

Availability
Dreamweaver 3.

Description
Determines which files are currently selected in the Files panel.

Arguments
None.

Returns
An array of strings that represents the paths of the selected files and folders, which is expressed as a file:// URL or an
empty array if no files or folders are selected.

site.getSiteForURL()

Availability
Dreamweaver MX.

Description
Gets the name of the site, if any, that is associated with a specific file.