Mail Rule to automatically download attachments

I want to create a Mail.app rule that will look for any email from myself and then automatically download any attachment to a folder. The end goal is that it will download it to a folder that is a webDav realm that I have constant access to using A.I. Disk on my iPhone. I am sure the rule will need to have an AppleScript attached to it as well.

MacBook Pro 2.5 GHZ "Penryn" 17", Mac OS X (10.5.2), 4GB RAM

Posted on Nov 12, 2008 1:03 PM

Reply
6 replies

Nov 13, 2008 9:54 AM in response to Corey Ammons

I too, would like to create a rule like this. I believe it needs to be done with a Rule that invokes an Applescript that would download the attachment automatically to a folder.

My goal is to actually have a rule that automatically downloads an attachment to a specific folder depending on a code in the email. My colleagues and I use job# for projects and it would be great to have a rule that will download attachments related to a project directly to the project folder.

Anyone care to give this one a shot?

Nov 13, 2008 3:44 PM in response to Corey Ammons

Funny. I was just going to post that last link. I actually got it to work as well. My only challenge is that if there is already a file with the same name in the folder, it stops processing. My clients and other colleagues tend to have a signature with a logo.gif in it. So when I set the rule to process attachments, it downloads all the attachments including the logo.gif. The next time an email comes through with logo.gif, it stops the applescript if there is already a logo.gif in the folder with the same name.

This is a major problem because my project manager is constantly emailing project-related emails and so only the first email with attachments is processed, because the second one sees the same logo.gif in the folder and stops processing.

Is there anyway to have the applescript ignore a specific file, or better yet, add a sequential number to the file name so that there are no duplicates? logo.gif.copy1 or whatever? I'm hopeless with Applescripts so I don't have the foggiest notion how to do this.

Thanks.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mail Rule to automatically download attachments

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.