Find Object; Finding And Replacing Text - Adobe 65011817 - Fireworks CS4 - Mac Extended User Manual

Extending guide
Hide thumbs Also See for 65011817 - Fireworks CS4 - Mac:
Table of Contents

Advertisement

Last updated 12/8/2009
Method
close()
readline()
readLineUTF8
write(textString)
writeUTF8

Find object

There are several ways to specify a Find object, depending on what you want to find and replace. Use the
property to specify the type of find operation, along with the properties that are associated with each legal value for
. These properties are listed in the following tables. Read-only properties are marked with a bullet (•).
whatToFind

Finding and replacing text

Property
whatToFind
find
matchCase
numItemsReplaced
regExp
replace
wholeWord
Finding and replacing fonts and styles
Property
whatToFind
find
replace
Data Type
none
none
string
string
string
Data type
string
string
Boolean
Integer
Boolean
string
Boolean
Data type
string
string
string
Notes
Closes the current File Reference object. You are not required
to use this method (the file is closed when the Files object is
destroyed), but it is useful for controlling access to a file.
Reads the next line from the current File Reference object and
returns it as a string. The end-of-line character(s) are not
included in the string. Returns
null
if the line is longer than 2048 characters.
Reads one line from the file that has been opened with UTF8
encoding.
Writes the specified string to the current File Reference object.
No end-of-line characters are appended; to include one, use
.
"\n"
Writes text in UTF8 encoding when the file is opened in UTF8
encoding.
Notes
In the format:
"text"
Text to find.
If set to
true
, the search is case-sensitive. Defaults to
Number of replacements done in a file using Find and Replace.
If set to
true
, the find and replace text is interpreted as a
regular expression. The default is
Text to use as replacement text.
If set to
true
, only whole words matching the search text are
found. The default is
.
false
Notes
In the format:
"font"
Name of font to find.
Name of font to use as replacement.
EXTENDING FIREWORKS
The Fireworks Object Model
if end-of-file is reached or
whatToFind
false
.
.
false
19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fireworks cs4

Table of Contents