• 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
GUI-Scripting MS Outlook 2011
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GUI-Scripting MS Outlook 2011


  • Subject: GUI-Scripting MS Outlook 2011
  • From: Michael Slomski <email@hidden>
  • Date: Wed, 10 Aug 2011 15:28:23 +0200
  • Thread-topic: GUI-Scripting MS Outlook 2011

Hello together,

Trying to make all folders showing the same columns i'm playing around with this script:

tell application "System Events"

tell process "Outlook"

--pick menu item "Kategorien" of menu 1 of menu item "Spalten" of menu "Ansicht" of menu bar item "Ansicht" of menu bar 1

set myMarkChar to value of attribute "AXMenuItemMarkChar" of menu item 1 of menu 1 of menu item "Textcodierung" of menu 1 of menu bar item "Formatieren" of menu bar 1 -- OK

set myMarkChar to value of attribute "AXMenuItemMarkChar" of menu item 3 of menu 1 of menu item "Textcodierung" of menu 1 of menu bar item "Formatieren" of menu bar 1 -- OK

set myMarkChar to value of attribute "AXMenuItemMarkChar" of menu item 1 of menu 1 of menu item "Lesebereich" of menu 1 of menu bar item "Ansicht" of menu bar 1 -- OK

set myMarkChar to value of attribute "AXMenuItemMarkChar" of menu item 2 of menu 1 of menu item "Lesebereich" of menu 1 of menu bar item "Ansicht" of menu bar 1 -- OK

set myMarkChar to value of attribute "AXMenuItemMarkChar" of menu item 3 of menu 1 of menu item "Lesebereich" of menu 1 of menu bar item "Ansicht" of menu bar 1 -- OK

set myMarkChar to value of attribute "AXMenuItemMarkChar" of menu item 1 of menu 1 of menu item "Gehe zu" of menu 1 of menu bar item "Ansicht" of menu bar 1 -- OK

set myMarkChar to value of attribute "AXMenuItemMarkChar" of menu item 2 of menu 1 of menu item "Gehe zu" of menu 1 of menu bar item "Ansicht" of menu bar 1 -- OK

set myMarkChar to value of attribute "AXMenuItemMarkChar" of menu item 3 of menu 1 of menu item "Gehe zu" of menu 1 of menu bar item "Ansicht" of menu bar 1 -- OK

set myMarkChar to value of attribute "AXMenuItemMarkChar" of menu item 1 of menu 1 of menu item "Anordnen nach" of menu 1 of menu bar item "Ansicht" of menu bar 1 -- Error: xxx couldn't be read. Invalid Index"

set myMarkChar to value of attribute "AXMenuItemMarkChar" of menu item 1 of menu 1 of menu item "Spalten" of menu 1 of menu bar item "Ansicht" of menu bar 1 -- Error: xxx couldn't be read. Invalid Index"

set myMarkChar to value of attribute "AXMenuItemMarkChar" of menu item 2 of menu 1 of menu item "Spalten" of menu 1 of menu bar item "Ansicht" of menu bar 1 -- Error: xxx couldn't be read. Invalid Index"

set myMarkChar to value of attribute "AXMenuItemMarkChar" of menu item 3 of menu 1 of menu item "Spalten" of menu 1 of menu bar item "Ansicht" of menu bar 1 -- Error: xxx couldn't be read. Invalid Index"

end tell

end tell


The lines who are "working are marked with OK at the end, the ones who don't show the error.
So why are some MarkChars of the menubar item "Ansicht" are accessible and others are not? UI-Inspector gives me no clue.
If anybody knows a better way to change the visible columns that would also be welcome.


Best reards
Michael Slomski
 _______________________________________________
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

  • Prev by Date: Sending Mail with Mail 5 in Lion
  • Next by Date: Scripting ColorSync?
  • Previous by thread: Re: Sending Mail with Mail 5 in Lion
  • Next by thread: Scripting ColorSync?
  • Index(es):
    • Date
    • Thread