Accessing Folders - Adobe GoLive CS2 Programmer's Manual

Hide thumbs Also See for GoLive CS2:
Table of Contents

Advertisement

SDK Programmer's Guide
been deleted or moved, or may never have been created. The isFile property is similar. If there is neither
a file nor a folder at the specified location, both properties are false .

Accessing folders

For your convenience, various properties and subproperties of the
ready-to-use file objects or filename strings
Properties of the app object provide access to commonly used folders, such as the application folder,
the system folder, the trash folder, the settings folder, the current working directory, and the folder in
which GoLive creates temporary files.
Properties of the
The document object provides access to additional site resources.
The following table lists properties that provide access to folders.
Property
app.folder
app.currentFolder
app.settingsFolder
app.systemFolder
app.tempFolder
app.trashFolder
app.prefs.imageFolder
app.prefs.scriptLibFolder
app.prefs.scriptLibName
document.site
document.homePage
Adobe GoLive CS2 SDK
attribute Object
provide access to resources shared by multiple sites.
Type
String
String
String
File
File
File
String
String
String
Site
Reference
Site
Reference
app Object
Description
The name of the folder that holds the GoLive
application. Read-only.
Returns the path to the folder that is the current
working directory. Set this property to change the
current working directory. Accepts a path name or a
object that represents a folder.
file
The Modules folder, which holds GoLive extension
modules and other settings. Read-only.
The folder that holds the operating system. Usually,
this is the
or
C:\WINDOWS
platforms. On Mac OS platforms, this folder can have
any name and it can reside on any local disk or network
volume. Read-only.
The folder GoLive uses to store temporary files.
Read-only.
The system trash folder. On Windows platforms, this
object refers to the local
OS platforms, this object refers to the
folder. Read-only.
startupDisk:Trash
The
folder. Read-only.
Picture Import
The JavaScript libraries folder. The default value is the
Generated Items folder. Read-only.
The site's common script library. Read-only.
The root folder of the site for a document that
represents a Site window.
The site's home page for a document that represents a
Site window.
Managing Files and Folders
and
document Object
folder on Windows
C:\WINNT
directory. On Mac
\RECYCLED
125
hold

Advertisement

Table of Contents
loading

Table of Contents