• 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
Handler Call "can't continue" Illustrator CS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Handler Call "can't continue" Illustrator CS


  • Subject: Handler Call "can't continue" Illustrator CS
  • From: Natalie Lambert <email@hidden>
  • Date: Fri, 7 Oct 2005 09:54:59 -0700 (PDT)

I'm having a bad day. I just started a new script to
find and replace text in AI CS and right off the bat
I'm having issues. the first part of the script seems
to do the right thing but then it errors on the
handler with "Can't Continue". I can't find a
reference to figure out what is up.

Is it the "ourText" variable? Maybe it doesn't like
the list. Even when I "hard-wire" the variable it
still doesn't work.

Anyone? Anyone?

Does anyone already have or know of  a find and
replace  (text) script for illustrator? i can't find
one.



tell application "Illustrator CS"
	activate
	tell document 1
		set ourText to contents of every text frame as list

		set findIt to "JobNumber" as text
		set replaceItWith to "5ABSP-279" as text
		tell application "Finder"
			set x to replace_chars(ourText, findIt,
replaceItWith)
			return ourText
		end tell
	end tell
end tell

on replace_chars(this_text, search_string,
replacement_string)
	set AppleScript's text item delimiters to the
search_string
	set the item_list to every text item of this_text
	set AppleScript's text item delimiters to the
replacement_string
	set this_text to the item_list as string
	set AppleScript's text item delimiters to ""
	return this_text
end replace_chars

ntle




__________________________________
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

  • Follow-Ups:
    • Re: Handler Call "can't continue" Illustrator CS
      • From: Neil Faiman <email@hidden>
    • Re: Handler Call "can't continue" Illustrator CS
      • From: pete boardman <email@hidden>
  • Prev by Date: Re: To Matt: Problem Sending AppleScripts as Text: The Resource Fork
  • Next by Date: The Save command will replace, without asking
  • Previous by thread: X-Code 1.5 oddity
  • Next by thread: Re: Handler Call "can't continue" Illustrator CS
  • Index(es):
    • Date
    • Thread