• 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: Eudora weirdness when failing to set a var to selected text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Eudora weirdness when failing to set a var to selected text
      • From: Frank Watzl <email@hidden>
References: 
 >Eudora weirdness when failing to set a var to selected text (From: Frank Watzl <email@hidden>)

  • Prev by Date: run script
  • Next by Date: Re: Eudora weirdness when failing to set a var to selected text
  • Previous by thread: Eudora weirdness when failing to set a var to selected text
  • Next by thread: Re: Eudora weirdness when failing to set a var to selected text
  • Index(es):
    • Date
    • Thread