Problem saving a message in Outlook 2011
Problem saving a message in Outlook 2011
- Subject: Problem saving a message in Outlook 2011
- From: Dave <email@hidden>
- Date: Fri, 19 Feb 2016 10:04:47 +0000
Hi,
I have changing an old script that uses Window IDs in Outlook. I need to save a Window to the Drafts Folder in Outlook, but at the point where I need to do this, I only have a Window ID. I tried the following code in a test script but I have seem to figure how to do it. Here is my test Script:
tell application id "com.microsoft.Outlook"
set myWindowID to the id of front window
set myWindow to (get window id myWindowID)
save myWindow -Does nothing - no message is produced in Drafts Folder
--save window myWindow -Causes Error
--save front window —Works!
end tell
The only thing that I can get to work is the “save front window”, but unfortunately I can’t rely on the window being front and I don’t want to have to rewrite everything not to use the Outlook Window id field.
Thanks a lot for any help.
All the Best
Dave
_______________________________________________
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