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


Click here to return to the 'alternate script version' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
alternate script version
Authored by: slacker on Sep 27, '02 08:34:20AM

Been a while since I did any applescripting (the last time was on an SE30 I think). This version goes through Inbox and reads off headers of unread messages. Paste text below into script editor and save into "~/Documents/Microsoft User Data/Entourage Script Menu Items" folder. To automatically launch automatically within Entourage, go to Tools/Schedules. Select "Send and Receive All". Click "Add Action". Pull down "Run Applescript" and browse to the file you just saved.

(*
Speak Mail
*)

tell application "Microsoft Entourage"
if frontmost then return
set theCount to unread message count of folder "Inbox" as text
if theCount is "0" then return
say "Hello, you have"
say theCount
say "messages."

set newMessages to messages of folder "Inbox"
repeat with theMessage in newMessages
-- get the information from the message,
-- and store it in variables
if the read status of theMessage is untouched then
set theName to sender of theMessage
set theName to display name of theName
set theSubject to subject of theMessage
say "from"
say theName
say "regarding "
say theSubject
end if
end repeat
end tell



[ Reply to This | # ]