Re: Email auto-notification script
Re: Email auto-notification script
- Subject: Re: Email auto-notification script
- From: Bryan <email@hidden>
- Date: Mon, 06 Nov 2000 18:24:09 -0500
- Organization: Apex Radiology
Using Akua's 'all processes' will tell you when a notification is pending from a
running app.
if (all processes "Eudora Pro" pending notifications true as string) is not empty
then ...
Bryan
Eric Waters wrote:
>
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
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users