Re: Save attachment in Outlook 2016 / Exchange
Re: Save attachment in Outlook 2016 / Exchange
- Subject: Re: Save attachment in Outlook 2016 / Exchange
- From: Christopher Stone <email@hidden>
- Date: Fri, 23 Sep 2016 10:18:47 -0500
On Sep 22, 2016, at 10:56, John Day <email@hidden> wrote:
I am getting a 2700 error for both of these options. Any idea why?
Try this.
Adjust attachmentFolder to your needs first.
I never experiment directly with the downloads folder, because once I had an app overwrite it unexpectedly.
------------------------------------------------------------------------------------------- set attachmentFolder to POSIX path of ((path to downloads folder as text) & "outlookAttachments")
tell application "Microsoft Outlook" set aMessage to first item of (get selection) set attachmentList to aMessage's attachments
repeat with theAttachment in attachmentList save theAttachment in attachmentFolder end repeat
end tell
tell application "Finder" to open (POSIX file attachmentFolder as text) -------------------------------------------------------------------------------------------
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden