First and foremost, I don't program. All I want is an applescript that automatically downloads attachments from my work email. The first part is easy with a mail rule. The script is giving me a problem. I found one that a guy was using to download torrent files and others said it worked. I altered the location for my hard drive but damn if I can get it to work. I cut and pasted it into the applescript editor and saved it, added it to the rule and voila ... didn't work. Here it is, any suggestions?!?
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 HD:Users:bergmef
esktop:") & (name of oneAttachment)
end repeat
end repeat
end tell
end perform mail action with messages
end using terms from
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 HD:Users:bergmef
end repeat
end repeat
end tell
end perform mail action with messages
end using terms from