Paul Berkowitz posted this recently to the Entourage newsgroup
<microsoft.public.mac.office.entourage> in response to a similar inquiry:
------------------
It could be done by a rule running a script.
-- Start Copying
tell application "Microsoft Entourage"
set theMsg to item 1 of (get current messages)
repeat with theAttachment in (every attachment of theMsg)
if name of theAttachment contains "imstp.gif" then
delete theAttachment
end if
end repeat
end tell
-- Stop Copying
------------------
Open Script Editor (HD/Applications/AppleScript/Script Editor), and paste
the script in. Then, save it to ~/Documents/Microsoft User Data/Entourage
Script Menu Items with a name you'll remember, like "Remove imstp". Now,
launch Entourage, and go to Tools -> Rules.
If you work off of the "On My Computer" hierarchy, create a rule like this
under the "Rules (POP)" tab:
* Execute actions if any criteria are met
IF Attachment Name Contains imstp.gif
THEN Run AppleScript Remove impstp
If you work from an account icon in the Folder List that is IMAP, create a
rule like this:
* Execute actions if any criteria are met
IF All Messages
THEN Run AppleScript Remove impstp
On 2/21/04 8:59 AM, "Werner Thron" <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> I'm new on this list because the search on the internet and newsgroups
> didn't gave me answers to my problem with entourage.
>
> I often recieve mails created by users of inredimail software. These
> mails always include the attachment imstp.gif , which is quite annoying
> for me...
>
> So I tried to set up a rule to delete this attachment. But the rule
> worked out as to be to successfull...meaning it deleted all the other
> attachments included in the mail too.
>
> So how can I set up a rule or a script, that does the job of just
> deleting just ONE attachment in the message?
>
> Currently I'm using most often ent2001 but the switch to entX ain't to
> far away, so any help would be appreciated :-)))
>
> Thanks in advance!!!
>
> Regards
>
> Werner
--
Mickey Stevens (Microsoft MVP for Office:mac)
PowerPoint FAQ featuring PowerPoint:mac: <http://www.pptfaq.com/>
Entourage Help Page: <http://www.entourage.mvps.org/toc.html>
--
To unsubscribe:
<mailto:[EMAIL PROTECTED]>
archives:
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>