The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. In order to better solve your issue, it is suggested to post a new thread in the more dedicated forum for Outlook for Developers, where there are many experts in development and also many threads related to AppleScript to reference: However I have not found useful information.
![outlook 2016 for mac appelscript outlook 2016 for mac appelscript](https://www.ucl.ac.uk/isd/sites/isd/files/asm1.png)
I really want to help you and indeed did some search about it. Usually, for different versions of Outlook we may need different script configurations in some fields, which means the codes might need to be modified. not-supportedĪs JohnKorchok mentioned, here we mainly focus on general issues about Outlook desktop client and we may know little about AppleScript development.
#OUTLOOK 2016 FOR MAC APPELSCRIPT CODE#
Is there any minor changes I can make to my current Applescript code to keep the original date and time? Can someone explain to me why this behavior changed? Thanks in advance to anyone who can help with this. The difference in behavior was changed in 2016. I would like to keep the Applescript code above as similar as possible, however if there is a better way of doing this then maybe time to change as needed. Now when you compile and run the Applescript it will open the eml file and create a new reply message in window but the date in the header of the original message is as expected with the older date and time shown. Set theMsg to make new incoming message at (deleted items of theAccount) with properties Set theDt to time received of the message id msgID Set theSender to sender of the message id msgID Set theAccount to account of the message id msgID Tell application "/Applications/Microsoft Outlook.app" Set theFile to (POSIX file "/Users/Shared/test.eml")
![outlook 2016 for mac appelscript outlook 2016 for mac appelscript](https://miro.medium.com/max/1200/1*dYwsT-x4NBtaRE02HxKTlw.png)
If you open the eml file in Outlook you will see the date and time from when sent from earlier time.Ĭopy and paste the following script into the editor: Wait for some time to go by like 5 minutes.
![outlook 2016 for mac appelscript outlook 2016 for mac appelscript](https://c-command.com/spamsieve/help/images/outlook-15-scripts-menu.png)
Open the message and take note of the sent date/time.Įxport the new email to the /Users/Shared folder. Send the message, if used yourself the message should come into your inbox as a new message. Outlook 2011 keeps the original date and time.Ĭreate a simple email in Outlook with subject as test, body as test, and to address to yourself. When this file is opened and then replied to using the script the original sent date in the header that now shows in message body gets changed to the current date/time. What we are doing is creating a test message and saving as eml file.