New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Mail automate attachment download


Post Reply New Thread Subscribe

 
Thread Tools
oldstace

 
Member Since: Jan 15, 2011
Location: Sydney, Australia
Posts: 6
oldstace is on a distinguished road
Mac Specs: iMac11,3

oldstace is offline
I am fairly new to Macs and to AppleScript. I want to automate the download of some mail attachments to a folder in documents. I have found a few scripts that I have tried to implement to no avail. I receive a file which I want to replace in the folder as the latest version, i.e I only want the one version of the file. I have setup a rule to handle it and it supposedly calls the script I have created. Following is the script I am using. If anyone could clarify this for me I would appreciate it.
using terms from application "Mail"

on perform mail action with messages theMessages for rule theRule

tell application "Mail"

repeat with oneMessage in theMessages

set {mail attachment:theAttachments} to oneMessage

repeat with oneAttachment in mail attachments of oneMessage

save oneAttachment in ("Macintosh HDocuments:Users:Michaelocuments:MailAtts:") & ("OpenOrdersLog")


end repeat

end repeat
QUOTE Thanks

Post Reply New Thread Subscribe


« Office program | Freezing and beeping! »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Mac mail won't download emails? Gazerdood OS X - Apps and Games 0 08-29-2010 10:54 PM
How to open zip attachment file not on mac mail? gstrome OS X - Operating System 1 04-15-2009 12:07 PM
Mac Mail - Set Email Download times? mbaile01 OS X - Apps and Games 0 03-09-2009 01:12 PM
Help with Mac Mail - do I need to download ALL previous mail? kennyleejx OS X - Apps and Games 0 02-05-2009 02:27 AM
Saving an email, including attachments. Mail. Leopard. ronmarx OS X - Apps and Games 3 02-13-2008 11:08 AM

All times are GMT -4. The time now is 08:00 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?