Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Speak new Mail notifications via a set of scripts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Speak new Mail notifications via a set of scripts
Authored by: Tomnibus on Mar 08, '05 12:57:18PM

I have had a series of scripts that has done this for about 5 years that I use with MS Entourage.

Although, it's not as in-depth as this example and it's a little more rudimentary but I use them all the same. The way mine work is there is one script per rule that I have defined. And the script is customized for that rule and applied to it. Say I get e-mail for a list, it will say, "Listname mail" (whatever I have manually typed in the script to say. Or I am on the "production Group" at my company so anytime mail comes in for that group it says, "Production Group Messages" Or "Personal Messages" for my personal e-mail box. So on and so forth.

However, I found that as e-mail was coming in every single e-mail (sometimes as much as 30-40 at a time) was being announced and it was ridiculous. So, I had a friend help me make a "property" in the script to announce only every 4.5 minutes (I get my mail every 5 minutes). So the first one announces but that's it. Here's an example:
[code]
property RunTime : 0

tell application "Microsoft Entourage"
set msgs to current messages -- doesn't work without temp variable
repeat with m in msgs
try
set s to m's source
set CurrentDate to time of (current date)
if RunTime + 120 ? (CurrentDate) then
say "Personal Messages"
end if

set RunTime to CurrentDate

end try
end repeat
end tell
[/code]



[ Reply to This | # ]