Adobe 26001360 - Illustrator CS - PC Manual page 244

Scripting guide
Hide thumbs Also See for 26001360 - Illustrator CS - PC:
Table of Contents

Advertisement

244
-- word in all text frames
set searchString to text returned of ¬
(display dialog "Word to set color of?" default answer "the")
tell application "Illustrator CS"
set textArtItemCount to (count text frames in document 1)
if (textArtItemCount > 0) then
repeat with itemCounter from 1 to textArtItemCount
if (((contents of text frame itemCounter of document 1) as string) ¬
contains searchString) then
set fill color of (words of text frame itemCounter of document 1 ¬
whose contents = searchString) to {red:100, green:0, blue:0}
end if
end repeat
end if
end tell
12 Aug 03
AppleScript Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Illustrator cs

Table of Contents