Results 1 to 1 of 1
-
08-24-2011, 01:47 AM #1
- Member Since
- Jan 15, 2011
- Location
- Sydney, Australia
- Posts
- 6
- Specs:
- iMac11,3
Mail automate attachment downloadI 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:Michael
ocuments:MailAtts:") & ("OpenOrdersLog")
end repeat
end repeat
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Mail forwarding as attachment
By bkanand in forum macOS - Operating SystemReplies: 0Last Post: 01-17-2012, 05:20 AM -
Picture attachment in mail
By Terry2124 in forum iOS and AppsReplies: 0Last Post: 04-27-2011, 11:19 AM -
Excel attachment in mail
By Robbie in forum macOS - Apps and GamesReplies: 1Last Post: 07-02-2010, 06:06 AM -
Mail attachment problem
By vxd in forum macOS - Apps and GamesReplies: 0Last Post: 06-03-2009, 11:57 PM -
Mail Attachment
By altyson in forum macOS - Apps and GamesReplies: 1Last Post: 08-28-2007, 08:50 AM