Re: Outlook 2016 - Error setting window bounds?
Re: Outlook 2016 - Error setting window bounds?
- Subject: Re: Outlook 2016 - Error setting window bounds?
- From: Dave <email@hidden>
- Date: Thu, 22 Sep 2016 09:58:28 +0100
Hi Yvan,
Thanks for the help.
I commented out windows 1 and 3 and this is the output from window 2:
tell application "Microsoft Outlook"
activate
open message 1 of drafts
open message 1 of inbox
get properties of window 2
--> {closeable:true, zoomed:false, class:window, index:-1, visible:true, name:"Test 1", modal:false, object:outgoing message id 847, miniaturizable:true, titled:true, id:388, floating:false, miniaturized:false, resizable:true, bounds:{869, 23, 1844, 504}, zoomable:true}
set bounds of window 2 to {869, 23, 1844, 504}
--> error number -10000
Result:
error "Microsoft Outlook got an error: AppleEvent handler failed." number -10000
I can’t see anything in the properties that might cause this error?
Any ideas greatly appreciated.
As an aside, is AppleScript using the old Mac ToolBox style for rectangles, e.g. Top,Left,Bottom,Right, instead of the Cocoa definition which is x,y,width,height? Is so, is there any way to convert between the two styles in AppleScript?
All the Best
Dave
> On 21 Sep 2016, at 18:06, Yvan KOENIG <email@hidden> wrote:
>
> Try to run this script to get informations about the windows :
>
>
> on run
> tell application id "com.microsoft.Outlook"
> activate
>
> open message 1 of drafts
> open message 1 of inbox
>
> properties of window 1
> try
> properties of window 2
> end try
> properties of window 3
> end tell
> end run
>
> Look in the history to see what is returned.
>
> I'm quite sure that you will get the answer to your question.
>
>
> Yvan KOENIG running Sierra 10.12.0 in French (VALLAURIS, France) mercredi 21 septembre 2016 19:06:39
_______________________________________________
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