Trying to remove Entourage messages from Server

A

AM

Thanks to the great scripts already out there, I've gotten this far! But now
I need some help.

I direct certain messages automatically to subfolders in my Inbox. Sometimes
they're marked as read, sometimes not. Regardless, for certain subfolders, I
would like to write a script to remove them from the server. Since some of
these folders have hundreds of messages in them, I only want to apply the
script to messages received today or yesterday, or within some recent
period. I've discovered that if I don't do this, it takes forever to run the
scripts.

Here's what I have that I was hoping would work, but it's not:

tell application "Microsoft Entourage"
repeat with m in messages of folder "United" in folder "Inbox"
if online status is fully downloaded then
set m's connection action to remove at next connection
end if
end repeat
end tell

I get the following error with this script: Microsoft Entourage got an
error: Can't get online status.

And there are 2 messages out of 26 (this is a small folder) in this folder
with a fully downloaded online status. (And they're really still on the
server, I checked!)

Any help would be greatly appreciated. I'm using OS X 10.3.7 with Entourage
X (10.1.6).

AM
 
P

Paul Berkowitz

Here's what I have that I was hoping would work, but it's not:

tell application "Microsoft Entourage"
repeat with m in messages of folder "United" in folder "Inbox"
if online status is fully downloaded then
set m's connection action to remove at next connection
end if
end repeat
end tell

I get the following error with this script: Microsoft Entourage got an
error: Can't get online status.

You didn't say online status of _what_. It's not a property of the
application, it's a property of a message.

tell application "Microsoft Entourage"
repeat with m in messages of folder "United" in folder "Inbox"
if online status of m is fully downloaded then
set m's connection action to remove at next connection
end if
end repeat
end tell

--
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.
 
Top