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


References: 
 >script to extract email attachments (From: David Reed <email@hidden>)
 >Re: script to extract email attachments (From: Brian <email@hidden>)

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