Moved “repeat with theMessage in selectedMessages” to a better place 7/31/13 updated the script so that running the script on multiple emails does not cause the attachment list to grow. AppleScript to remove attachment from selected messages in Outlook 2011 Hope this can save somebody else some time. I have grabbed a few examples from other sources and written a script that will save each attachment in a subfolder based on the date the email was received. Log "Deleted " & ( (sz / 1024 ) as integer ) & "KB of attachments" This can mean you have messages left after the script run that are still too large, so just run the script a few times until there are no messages left highlighted. So the script silently ignores these errors and goes on to the next message. This caused script errors when messages it was about to interact with disappeared half way through deleting the attachments of those messages (since the total message size dropped below the search filter). One issue is that Outlook will try and refresh the search results when it perceives something has changed in the database. To use it you can perform some sort of search in Outlook (like all messages over 10MB) and then select all the returned messages and run the script. Here is a script that will delete all the attachments from messages highlighted in Outlook 2011.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |