Applescript to prevent not attaching the attachment

J

Jeremy Fieldsend

I've done it again. Sent an email promising an attachment... but
without the attachment.

I wonder if anyone would like to have a go an Apple Script that might
check for an attachment; look for the word 'attachment' in the body of
the email and if it finds it and there's no attachment, on sending,
throw up a warning message saying "There's no attachment with this
email, is this what you really want?"

Needless to say, it's way beyond me.

Many thanks
 
B

Barry Wainwright [MVP]

I've done it again. Sent an email promising an attachment... but
without the attachment.

I wonder if anyone would like to have a go an Apple Script that might
check for an attachment; look for the word 'attachment' in the body of
the email and if it finds it and there's no attachment, on sending,
throw up a warning message saying "There's no attachment with this
email, is this what you really want?"

Needless to say, it's way beyond me.

Many thanks

Trouble is, there's no way to intercept the sending of an email.

An 'Outgoing' rule actually fires after the mail is sent (should be called
an "outgone" rule, really), so using such a rule you could have a script
that throws a dialog saying "that mail you just sent didn't have an
attachment, should it have?", but by then the mail is already gone. The
normal way of doing things to messages before they are sent is to have a
schedule fire once a minute and run a script to look at the frontmost
window. In this case, people don't normally attach files to emails until
they have finished writing them, so such a script would interrupt the user
too much.
 
P

Paul Berkowitz

True enough, still I've found it useful. At least I can resend right away
rather than waiting for my recipient to write back and tell me I screwed up.

See attached for the "Outgoing" rule I use.

That's smart.

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