• 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
Email auto-notification script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Email auto-notification script


  • Subject: Email auto-notification script
  • From: Eric Waters <email@hidden>
  • Date: Mon, 6 Nov 2000 17:01:56 -0600

I'm trying to have Applescript display a dialog on top of the current application whenever new mail is received in Eudora (running in the background). I have the dialog set up to display the sender name and subject and give the user the choice to either "Read" (and switch to Eudora) or "Ignore" (and remain where they are). However, I can't seem to figure out how to make the dialog appear automatically whenever Eudora checks for and receives new mail. Any ideas? Here's the script:

tell application "Eudora Pro"
set mysubject to subject of last message of mailbox "In"
set mysender to sender of last message of mailbox "In"
set mynotify to "Incoming Email..." & return & return & "From: " & mysender & return & "Subject: " & mysubject

tell application "Finder"
activate
display dialog mynotify with icon 1 buttons {"Read", "Ignore"} default button 2
if result is {button returned:"Read"} then tell application "Eudora Pro"
activate
end tell
end tell
end tell

Thanks.

WWWWWWWWWWWWWWWWW

Eric Waters
Systems Trainer - OICPS
Southwest Educational Development Laboratory - SEDL
Austin, Texas 78701
512-476-6861 ext. 329

web: http://www.sedl.org


  • Follow-Ups:
    • Re: Email auto-notification script
      • From: Johan Solve <email@hidden>
    • Re: Email auto-notification script
      • From: Bryan <email@hidden>
  • Prev by Date: Re: Please Help Me...
  • Next by Date: Re: Email auto-notification script
  • Previous by thread: Re: Printing to PostScript File from QuarkXpress
  • Next by thread: Re: Email auto-notification script
  • Index(es):
    • Date
    • Thread