• 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: How to tell Window Class/Type in Outlook 2011
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to tell Window Class/Type in Outlook 2011


  • Subject: Re: How to tell Window Class/Type in Outlook 2011
  • From: Christopher Stone <email@hidden>
  • Date: Tue, 01 Mar 2016 23:11:55 -0600

On Mar 01, 2016, at 07:26, Dave <email@hidden> wrote:
Is there anything else that I can use instead of the "id" field? The Outlook User may have a number of Windows open, when they run the first part of the process it needs to capture the Front Window and save it, this  can be done on any number of Windows, with each Outlook window being remembered by the App. Then when the second part of the process is run, it uses the info saved….
______________________________________________________________________

Hey Dave,

A couple of thoughts:

This would appear to be the easy way:

-------------------------------------------------------------------------------------------

tell application "Microsoft Outlook"
  set winID to id of front window
  first window whose id is winID

  

  --> main window id 1020 of application "Microsoft Outlook"

  

end tell

-------------------------------------------------------------------------------------------

These are letting me use frontWin between two app-tell-blocks.

And I'm able to store the window object in the script winStor.

-------------------------------------------------------------------------------------------

script winStor
  property theWin : ""
end script

tell application "Microsoft Outlook"
  set frontWin to front window
  --> main window id 1020 of application "Microsoft Outlook"

  

  set winStor's theWin to frontWin
end tell

tell application "Microsoft Outlook"
  frontWin's properties

  

  set newFrontWin to winStor's theWin
  newFrontWin's properties

  

end tell

-------------------------------------------------------------------------------------------

So I'm thinking you can work around your problems.

--
Take Care,
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

  • Next by Date: Applescript count mail attachment error
  • Next by thread: Applescript count mail attachment error
  • Index(es):
    • Date
    • Thread