Method
rename(docname,
newPlainFilename)
setFilename(docname,
newPlainFilename)
swap(docname1, docname2)
22
The Fireworks Object Model
Data type
Notes
string, string
The
file URL to the file that you want to
rename.
The
new name to assign to the file.
The
of the newly renamed file if successful;
otherwise Fireworks returns
string, string
The first argument must be expressed
as file://URL. Returns a file URL with
docname
For example,
Files.setFilename("file:///work/
logo.png", "oldlogo.png")
"file:///work/oldlogo.png"
method does not affect the file on disk;
it simply provides a convenient way to
manipulate file URLs. To change the
name on disk, use
string, string
Each argument must be expressed as a
file://URL. Swaps the contents of the
two specified files, so that each file
contains the contents of the other file.
Only files (not directories) can be
swapped, and both files must reside on
the same drive. Returns
is successful;
argument is a file path or a
docname
argument is the
newPlainFilename
method returns a URL path
rename
replaced by
newPlainFilename
rename()
true
otherwise.
false
.
null
.
returns
. This
.
if the swap
Need help?
Do you have a question about the FIREWORKS 8-EXTENDING FIREWORKS and is the answer not in the manual?
Questions and answers