• 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: Neil Faiman <email@hidden>
  • Date: Sat, 8 Oct 2005 10:35:40 -0400

When you invoke a handler within a tell block, the handler call gets sent to the "told" application. You are saying "tell application "Finder" to set x to replace_chars(...)", and Finder is saying, "Hunh? I don't know anything about replace_chars."

Change the problem line to

            set x to my replace_chars(ourText, findIt,
replaceItWith)

or, alternatively, to

            tell me to set x to replace_chars(ourText, findIt,
replaceItWith)

either of which will send the replace_chars call to your script instead of to the Finder, and it should work just fine.


95% of the time, a "Can't continue" message means "You put a handler call in a tell block and forgot to prefix it with 'my'."

Regards,

    Neil Faiman


On Oct 7, 2005, at 12:54 PM, Natalie Lambert wrote:

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.

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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Handler Call "can't continue" Illustrator CS (From: Natalie Lambert <email@hidden>)

  • Prev by Date: Re: The Save command will replace, without asking
  • 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