• 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: Locating A Menu Item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Locating A Menu Item


  • Subject: Re: Locating A Menu Item
  • From: Craig Sutherland <email@hidden>
  • Date: Sun, 27 Jul 2003 23:53:59 -0500

Using Bill Cheeseman's excellent UI Browser to get the reference,

menu item "Connect" of menu "Connect" of menu bar 1 of application process "Internet Connect"

will access the Connect menu item the Connect menu (just as it says). However there is no reference to the <AXMenuItem> from within Internet Connect.

Using UI Element Inspector, and selecting the Internal Modem from the drop down menu of the modem icon indicates this
**********************************************************************
<AXMenu: >
<AXMenuItem: Internal Modem>

Attributes:
AXRole: AXMenuItem
AXRoleDescription: menu item
AXChildren: (null)
AXParent: <AXMenu: >
AXTitle: Internal Modem
AXEnabled: 1
AXPosition: x=887 y=88
AXSize: x=241 y=19
AXWidth: 241
AXHeight: 19
AXSelectedChildren: (null)
AXVisibleChildren: (null)
AXHelp: (null)
AXMenuItemCmdChar: (null)
AXMenuItemCmdVirtualKey: (null)
AXMenuItemCmdGlyph: (null)
AXMenuItemCmdModifiers: (null)
AXMenuItemMarkChar: 

Actions:
AXCancel - cancels menu tracking
AXPick - selects a menu item
AXPress - selects a menu item
**********************************************************************

To have another menu item from that menu, here is the menu item "Show time connected"

**********************************************************************

<AXMenu: >
<AXMenuItem: Show time connected>

Attributes:
AXRole: AXMenuItem
AXRoleDescription: menu item
AXChildren: (null)
AXParent: <AXMenu: >
AXTitle: Show time connected
AXEnabled: 1
AXPosition: x=887 y=119
AXSize: x=241 y=19
AXWidth: 241
AXHeight: 19
AXSelectedChildren: (null)
AXVisibleChildren: (null)
AXHelp: (null)
AXMenuItemCmdChar: (null)
AXMenuItemCmdVirtualKey: (null)
AXMenuItemCmdGlyph: (null)
AXMenuItemCmdModifiers: (null)
AXMenuItemMarkChar: 

Actions:
AXCancel - cancels menu tracking
AXPick - selects a menu item
AXPress - selects a menu item
**********************************************************************

UI Element Inspector is available on Apple's site- <www.apple.com/applescript/GUI/>. There is a link to the Inspector on that page.

Craig
On Sunday, July 27, 2003, at 11:12 PM, Jim Lindholm wrote:
Does anyone know if the menu can be identified by a name, number, position... or anything else?

At this point I would be satisfied with one or more of the identifiers, but I would be thrilled to see an example syntax to select an item in the menu.
Thanks... Jim
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Locating A Menu Item
      • From: John Delacour <email@hidden>
    • Re: Locating A Menu Item
      • From: Jim Lindholm <email@hidden>
References: 
 >Locating A Menu Item (From: Jim Lindholm <email@hidden>)

  • Prev by Date: Locating A Menu Item
  • Next by Date: Re: UI Scripting FileMaker
  • Previous by thread: Locating A Menu Item
  • Next by thread: Re: Locating A Menu Item
  • Index(es):
    • Date
    • Thread