Re: script to extract email attachments
Re: script to extract email attachments
- Subject: Re: script to extract email attachments
- From: David Reed <email@hidden>
- Date: Sun, 10 Apr 2005 09:42:01 -0400
On Apr 10, 2005, at 9:04 AM, Brian wrote:
Hello David,
Your script only works when you select a message because you forgot to
add the for rule theRule parameter.
It's because Mail don't "select" incoming messages when they match a
rule, but it "pass" a kind of "Match rule" flag.
So, I think it will work if you add the following to your script :
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
if (name of theRule) = "Your rule's name" then
-- (...)
end if -- name of theRule
end perform mail action with messages
end using terms from
Hope that help,
Brian
That doesn't appear to work but thanks for the suggestion. It's not
that big a deal - probably safer to check the attachments before
extracting them anyway. But if anyone knows why it doesn't work, I'm
curious.
Thanks,
Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden