Email auto-notification script
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