User Guide
Core objects 21
Finding and replacing colors, fills, strokes, and effects
Finding and replacing URLs
Finding and replacing non-websafe colors with the closest websafe color
Property Data type Notes
whatToFind
string In the format: "color"
find
string A color string that specifies the color to find
(see “Color string data type” on page 11).
replace
string A color string that specifies the color to use
as a replacement (see “Color string data
type” on page 11).
fills
Boolean If set to true, fills that match the specified
colors are replaced.
strokes
Boolean If set to true, strokes that match the
specified colors are replaced.
effects
Boolean If set to true, effects that match the specified
colors are replaced.
Property Data types Notes
whatToFind
string In the format: "url"
find
string URL to find, which is expressed as file://
URL.
replace
string URL to use as replacement text, which is
expressed as file://URL.
wholeWord
Boolean If set to true, only whole words that match
the search text are found. The default
is
false.
matchCase
Boolean If set to true, the search is case sensitive.
Defaults to
false.
regExp
Boolean If set to true, the find and replace text is
interpreted as a regular expression. The
default value is
false.
Property Data type Notes
whatToFind
string In the format: "nonwebcolor"
effects
Boolean If set to true, colors in effects are replaced.
The default value is
false.
fills
Boolean If set to true, colors in fills are replaced. The
default value is
false.
strokes
Boolean If set to true, colors in strokes are replaced.
The default value is
false.