Re: Eudora weirdness when failing to set a var to selected text
Re: Eudora weirdness when failing to set a var to selected text
- Subject: Re: Eudora weirdness when failing to set a var to selected text
- From: Bill Briggs <email@hidden>
- Date: Wed, 24 Oct 2001 18:52:36 -0300
It executes for me, whether in an editor (either stepping through or
just running it), or when I run it as an application. How are you
running it? You didn't give any specifics about system, Eudora
version, etc. I can't make it throw an error on the last line. Works
as expected here.
- web
At 9:52 PM +0200 24/10/01, Frank Watzl wrote:
Eudora experts,
when I run this in Eudora with no messages or other windows open,
the error handler will not be executed. The last line however will
throw error -2753, although in the first line s is initialized. any
ideas?
set s to ""
tell application "Eudora"
try
set s to selected text
on error e number n
activate
display dialog (n as string) & return & e -->this never happens
end try
end tell
if s = "" then return --> the variable s is not defined