

#Dropbox for mac mail code#
You could perhaps add code to migrate the "Mail Attachments" folder from your Downloads folder to your Dropbox folder. With Dropbox, you can easily send any large file, including including images and video files, to anyone you wantand the receiver won’t even need a Dropbox account to access the file. Set _M to a reference to (every message in the inbox whose ¬ĭate received > ((my date named 0.0) - 3 * days)) This retrieves messages from the previous three days: tell application id "" to tell (make new folder ¬ I've put a filter on the messages being acted upon as retrieving every message in a mailbox is potentially very costly. Whilst you get to the bottom of what is preventing you from writing out to folders other than your Downloads folder (which presumably includes subfolders in the Downloads folder), here's a barebones script that should save mail attachments to the folder ~/Downloads/Mail Attachments/. I tried to run chmod go+rw on the directory, but that did not help.Ĭhanging everyone to Read&Write does not help either. The flags of the dropbox directory are set as follows: ~ $ ls -FLAG Dropbox\ 15 username staff 480B Apr 8 13:52 Dropbox (Company)/

In a non-dropbox directory everything works. Set theSavePath to theOutputFolder & theAttachmentName

Set theAttachmentName to name of anAttachment Repeat with anAttachment in (get mail attachments in theMessage)
#Dropbox for mac mail Pc#
Set theOutputFolder to ("/./Dropbox (Company)/") as string The tool can also synchronize the data file for your PCs email client - effective with Outlook on your PC as well as Mozilla Thunderbird on either PC or Mac. Set theMessages to messages of mailbox "Inbox" of account with theMessage in theMessages in the following script: tell application "Mail" The line producing the error is the one starting with save anAttachment to. Everything works fine, but when I set the output to a dropbox directory, I get an error message: Result:Įrror "Mail got an error: To view or change permissions, select the item in the Finder and choose File > Get Info." number -10000 I have pasted together an apple script to save email attachments to a directory. AirMail Post Box MailMate TwoBird Wrap up best email app for the Mac Gmail for Mac Before I look at the various email apps for Mac, I want to mention one other app that might appeal to Google.
