Adobe 38039927 - Fireworks CS3 - PC Extended User Manual page 18

Extending fireworks
Hide thumbs Also See for 38039927 - Fireworks CS3 - PC:
Table of Contents

Advertisement

Errors object
All
object properties are read-only strings that are used to simplify the localizing of scripts. They return
Errors
localized error messages appropriate to the specific error. For example, the English version of Fireworks returns
for the
"Memory is full."
The following list contains the properties of the Errors object alphabetically:
EAppAlready
, EAppNotSerialized, EArrayIndexOutOfBounds, EBadFileContents,
EBadJsVersion, EBadNesting, EBadParam, EBadParamType, EBadSelection, EBufferTooSmall,
ECharConversionFailed, EDatabaseError, EDeletingLastMasterChild, EDiskFull,
EDuplicateFileName, EFileIsReadOnly, EFileNotFound, EGenericErrorOccurred, EGroupDepth,
EIllegalThreadAccess, EInternalError, ELowOnMem, ENoActiveDocument, ENoActiveSelection,
ENoFilesSelected, ENoNestedMastersOrAliases, ENoNestedPasting, ENoSliceableElems,
ENoSuchElement, ENotImplemented, ENotMyType, EOutOfMem, EResourceNotFound,
ESharingViolation, EUnknownReaderFormat, EUserCanceled, EUserInterrupted, EWrongType
Files object
The following table lists the methods of the Files object, along with their data types and, where appropriate,
acceptable values and notes.
Method
copy(docname1, docname2)
createDirectory(dirname)
createFile(fileURL,
fileType, fileCreator)
deleteFile(docOrDir)
deleteFileIfExisting
(docOrDir)
property.
EOutOfMem
Data type
Notes
string, string
Copies the file specified in the first argument to
the file specified in the second argument. Each
argument must be the name of a file, which is
expressed as file://URL. Only files (not directories)
can be copied. The files do not need to reside on
the same drive, and the method does not over-
write a file if it already exists. Returns a value of
true
wise.
string
Creates the specified directory. Returns
successful;
string, string, string
Creates the specified file. The file must not
already exist. The first argument is the name of
the file, which is expressed as file://URL. The last
two arguments let you specify the file type and
file creator strings. The
fileCreator
of exactly four characters in length, for example:
Files.create-
File(newFile,".txt","FWMX");
string
Deletes the specified file or directory. Returns
true
does not exist or cannot be deleted. Compare
with
string
Deletes the specified file or directory. Returns
true
cannot be deleted. Unlike
this method returns
does not exist.
if the copy is successful;
false
otherwise.
false
fileType
and
strings should each be strings
if successful;
false
if the file or directory
deleteFileIfExisting()
if successful;
false
if the file or directory
deleteFile()
if the file or directory
true
ADOBE FIREWORKS CS3
Extending Guide
other-
true
if
.
,
14

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs3

Table of Contents