Site.getcurrentsite(), Site.getfocus(), Site.getlocalpathtofiles() – Adobe Dreamweaver API Reference CS5 User Manual
Page 238

233
DREAMWEAVER API REFERENCE
Site
Last updated 8/27/2013
site.getCurrentSite()
Availability
Dreamweaver 3.
Description
Gets the current site.
Arguments
None.
Returns
A string that contains the name of the current site.
Example
If you defined several sites, a call to
site.getCurrentSite()
returns the one that is currently showing in the Current
Sites List in the Files panel.
site.getFocus()
Availability
Dreamweaver 3, and updated in CS4.
Description
Determines which pane of the Files panel has focus.
Arguments
None.
Returns
One of the following strings local or remote.
site.getLocalPathToFiles()
Availability
Dreamweaver MX.
Description
Determines the path to the local files that are defined for the current site. The current site is the site that is associated
with the document that currently has focus. If no document has focus, the site that you opened in Dreamweaver is
used.
Note: ColdFusion Component Explorer uses this function; see “
site.getAppServerPathToFiles()
230.