bravo2
bravo2

Reputation: 693

AppleScript to save message into eml file in Outlook 15 for Mac

The following AppleScript line is giving an error in Microsoft Outlook 15 for Mac (available from Office 365 or Office 2016 Preview). It works fine in Outlook 2011 for Mac. Do you know the AppleScript command to save messages in Outlook 15 for Mac?

save theMessage in theFileName

For a sample usage of this save command, please refer to the script in this question

Upvotes: 2

Views: 895

Answers (2)

timbroder
timbroder

Reputation: 878

Assuming you are trying to get this Outlook to Omnifocus script working, http://rainer.4950.net/2014/06/04/outlook-to-omnifocus2-take-12/

Change the save location to be internal to Outlook. I think this has something to do with Sandboxing

set theFileName to "/Users/tbroder/Library/Containers/com.microsoft.Outlook/Data/Documents/OutlookMsg" & theID & ".eml"

This worked for me with the Apple Store version of OmniFocus

Upvotes: 2

Eugene Astafiev
Eugene Astafiev

Reputation: 49395

Try to use the following code instead:

save theMessage in (theFileName)

What file name do you specify for the save command?

Upvotes: 0

Related Questions