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: 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