• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: script to extract email attachments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: script to extract email attachments


  • Subject: Re: script to extract email attachments
  • From: Brian <email@hidden>
  • Date: Sun, 10 Apr 2005 15:04:06 +0200

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


 _______________________________________________
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

  • Follow-Ups:
    • Re: script to extract email attachments
      • From: David Reed <email@hidden>
References: 
 >script to extract email attachments (From: David Reed <email@hidden>)

  • Prev by Date: script to extract email attachments
  • Next by Date: Re: script to extract email attachments
  • Previous by thread: script to extract email attachments
  • Next by thread: Re: script to extract email attachments
  • Index(es):
    • Date
    • Thread