Save Attachments - No "If Attachment Exists" in recent Entourage Rule engine?

R

Rick.Cogley

Hello -

I am running OS/X 10.4.5, Entourage 2004, 11.2.3 (060209), AppleScript
1.10.4. I found an interesting problem when experimenting with Paul
Berkowitz' useful "Save Attachments 2004" script, and I hope one of you
might be able to kindly offer some feedback and assistance.

In Mr. Berkowitz' readme about the script, he explains how to create a
rule that checks messages for attachments, using the criterion If
Attachment Exists, Then Run AppleScript. However, this functionality
seems to now have been removed from Entourage.

As an aside, I tried just having the script fire for all messages, and
that works, but the excellent functionality the script has, of making a
link to the file it removes, is now broken.

I suspect that the recent update of Entourage might have been the cause
of this?

Cheers,
Rick
 
B

Barry Wainwright [MVP]

That selection criteria doesn't appear for IMAP or Exchange accounts,
because the rule is firing when only the headers have been downloaded,
before the existence of the attachment can be determined.
 
P

Paul Berkowitz

Somewhat to my surprise, the Attachment criterion _is_ there for Exchange
accounts (and Hotmail, if anyone still has one of those accounts in
Entourage). Just not IMAP.

I'm curious as to what makes it possible for a rule to determine existence
and name of attachments on an encoded message on an Exchange server but not
on an IMAP server. We've been told in the past that some IMAP servers cannot
be relied on to return results (thus you can't 'duplicate' - copy - a
message to an IMAP server by AppleScript since the resulting message with ID
may not be found). Perhaps this is a similar issue, and because all Exchange
servers are the same and predictable, there's a way to find the attachment.

Anyway, not for IMAP, but yes for POP, Exchange, Hotmail.

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

Rick.Cogley

Barry, Paul, thanks for your responses.

I did not even consider that Entourage might treat (or have to treat)
the various accounts differently.
But of course attachments and MIME and the like are all pretty hairy
under the hood.

I am trying to figure out what the script will do now, if I have
attachments coming in with the same name.

Regards,
Rick
 
R

Rick.Cogley

The script is intelligent - if an attachment that is already there
comes in, it just puts a number after it so as to avoid overwriting.
Nice.

However, with my setup downloading from IMAP accounts, the script does
NOT auto-create the links as it does when you run it manually on
individual messages. I do get the messages stripped out, though, and
stored.

Perhaps Mr. Berkowitz can offer some insight?
 
Top