Re: Handler Call "can't continue" Illustrator CS
Re: Handler Call "can't continue" Illustrator CS
- Subject: Re: Handler Call "can't continue" Illustrator CS
- From: Natalie Lambert <email@hidden>
- Date: Fri, 7 Oct 2005 12:33:10 -0700 (PDT)
Thanks Pete!
With a little rearranging for CS I got it. Here is the
finished code. Now I just have to write the rest!
Thanks again!
natalie
tell application "Illustrator CS"
activate
tell document 1
set textFrames to text frames
repeat with i from 1 to count of textFrames
set thisTextFrame to item i of textFrames
set ourText to contents of thisTextFrame as text
set findIt to "BOB"
set replaceItWith to "was here"
set x to my searchReplace(ourText, findIt,
replaceItWith)
set contents of thisTextFrame to x
--return x
end repeat
end tell
end tell
on searchReplace(theText, SearchString, ReplaceString)
set OldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to
SearchString
set newText to text items of theText
set AppleScript's text item delimiters to
ReplaceString
set newText to newText as text
set AppleScript's text item delimiters to OldDelims
return newText
end searchReplace
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden