• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Save attachment in Outlook 2016 / Exchange
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?


Hey John,

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)
-------------------------------------------------------------------------------------------

--
Best Regards,
Chris

 _______________________________________________
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

References: 
 >Save attachment in Outlook 2016 / Exchange (From: John Day <email@hidden>)

  • Prev by Date: Re: Sierra kills ASObjC Runner
  • Next by Date: help
  • Previous by thread: Re: Save attachment in Outlook 2016 / Exchange
  • Next by thread: Changing Safari's Homepage with a little intellegence
  • Index(es):
    • Date
    • Thread