• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Handler Call "can't continue" Illustrator CS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Handler Call "can't continue" Illustrator CS
  • Next by Date: Re: long shot..
  • Previous by thread: Re: Handler Call "can't continue" Illustrator CS
  • Next by thread: RE: Handler Call "can't continue" Illustrator CS
  • Index(es):
    • Date
    • Thread