Re: Problem saving a message in Outlook 2011
Re: Problem saving a message in Outlook 2011
- Subject: Re: Problem saving a message in Outlook 2011
- From: Dave <email@hidden>
- Date: Tue, 23 Feb 2016 14:05:00 +0000
Hi, Christopher,
Thanks for helping out. I tried your suggestion (please see Script copied below) but I still get as error on the “save” statement:
"Microsoft Outlook got an error: Can’t get draft window id 1683"
Any idea on what could be wrong?
All the Best
Dave
on saveOutlookWindowWithWindowID:(theWindowID as string)
say "saveOutlookWindowWithWindowID"
set myWindowID to theWindowID as number
tell application id "com.microsoft.Outlook"
tell draft window id myWindowID
save
end tell
end tell
end saveOutlookWindowWithWindowID:
on run
set myWindowID to the id of front window
get my saveOutlookWindowWithWindowID:(myWindowID)
end run
> On 19 Feb 2016, at 21:06, Christopher Stone <email@hidden> wrote:
>
> On Feb 19, 2016, at 04:04, Dave <email@hidden> wrote:
>> 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.
> ______________________________________________________________________
>
> Hey Dave,
>
> Try this:
>
> tell application "Microsoft Outlook"
> tell draft window id 2735
> save
> end tell
> end tell
>
> --
> 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
_______________________________________________
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