Checking message count on Exchange Server in Entouage

K

Kris

Very simple question that's driving me nuts trying search for an
answer...

I have an Applescript program that checks for an Inbox count:
tell application "Microsoft Entourage"
return unread message count of folder "Inbox"
end tell

works fine, except it's returning the local (unused) Inbox and I have
Entourage connected to an Exchange server (displayed as "Exchange" in
the folder view) and I need the count on that Inbox.

I tried changing it to "Exchange\\Inbox" and a few other variations,
but I'm really just shooting in the dark.

TIA

Kris
 
P

Paul Berkowitz

Very simple question that's driving me nuts trying search for an
answer...

I have an Applescript program that checks for an Inbox count:
tell application "Microsoft Entourage"
return unread message count of folder "Inbox"
end tell

works fine, except it's returning the local (unused) Inbox and I have
Entourage connected to an Exchange server (displayed as "Exchange" in
the folder view) and I need the count on that Inbox.

I tried changing it to "Exchange\\Inbox" and a few other variations,
but I'm really just shooting in the dark.

You need to look into the AppleScript Entourage dictionary, not shoot in the
dark.

folder "Inbox" of Exchange account "Account Name"

will work in both 10.1.4 and 2004. Get the "Account Name" from whatever
you've called it in Tools/Accounts/Exchange/Account Name

--
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

PLEASE always state which version of Microsoft Office you are using -
**2004**, X or 2001. It's often impossible to answer your questions
otherwise.
 
M

Mickey Stevens

For Entourage 2004...

tell application "Microsoft Entourage"
return unread message count of folder "Inbox" of Exchange account
"Exchange"
end tell

For Entourage X...

tell application "Microsoft Entourage"
return unread message count of folder "Inbox" of IMAP account "Exchange"
end tell

In the future, please state what version of Entourage you are using.

(HTML used to maintain coding without worry of line breaks)
 
Top