![]() ![]() 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. 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. 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.Īs JohnKorchok mentioned, here we mainly focus on general issues about Outlook desktop client and we may know little about AppleScript development. 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") Copy and paste the following script into the editor:. ![]() If you open the eml file in Outlook you will see the date and time from when sent from earlier time. Wait for some time to go by like 5 minutes.Export the new email to the /Users/Shared folder.Open the message and take note of the sent date/time.Send the message, if used yourself the message should come into your inbox as a new message.Create a simple email in Outlook with subject as test, body as test, and to address to yourself.Outlook 2011 keeps the original date and time. 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. Get the name of the running script, including filename extension (. general-purpose *.workflow files created with Automator that contain ApplesScript actions and that are run with automator - always reports 'Automator Runner'.OS X services created with Automator that contain AppleScript actions (special *.workflow files) - always reports 'WorkflowServiceRunner'.Note: By contrast, it does not work for the following: *.app files created with Automator that contain AppleScript actions.*.app files created with AppleScript Editor.command-line scripts that directly contain AppleScript (marked as executable and starting with #!/usr/bin/env osascript):.*.applescript files (uncompiled AppleScript files run in AppleScript Editor or with osascript).*.scpt files (compiled AppleScript files run in AppleScript Editor or with osascript).Here's a method that works for all of the following: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |