• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Outlook 2016 - Error setting window bounds?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Outlook 2016 - Error setting window bounds?


  • Subject: Re: Outlook 2016 - Error setting window bounds?
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 21 Sep 2016 19:06:45 +0200

> Le 21 sept. 2016 à 18:52, Dave <email@hidden> a écrit :
>
> Hi All,
>
> When I run this Script:
>
> on run
> 	tell application id "com.microsoft.Outlook"
> 		activate
>
> 		open message 1 of drafts
> 		open message 1 of inbox
>
> 		set bounds of window 1 to {869, 511, 1853, 1148}
> 		set bounds of window 2 to {869, 23, 1844, 504}			—ERROR
> 		set bounds of window 3 to {21, 23, 1203, 932}
> 	end tell
> end run
>
> I get this error on the line marked ERROR:	error "Microsoft Outlook got an error: AppleEvent handler failed." number -10000
>
> There is the Browser Window, a draft window and an inbox window open when it attempts to set the bounds of window 2 (Inbox window), window 1 and 3 work ok though - any one have any ideas why?
>
> Thanks in Advance.
> All the Best
> Dave
>

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


  • Follow-Ups:
    • Re: Outlook 2016 - Error setting window bounds?
      • From: Dave <email@hidden>
References: 
 >Outlook 2016 - Error setting window bounds? (From: Dave <email@hidden>)

  • Prev by Date: Outlook 2016 - Error setting window bounds?
  • Next by Date: Re: Outlook 2016 - Error setting window bounds?
  • Previous by thread: Outlook 2016 - Error setting window bounds?
  • Next by thread: Re: Outlook 2016 - Error setting window bounds?
  • Index(es):
    • Date
    • Thread