• 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: Jim Lindholm <email@hidden>
  • Date: Mon, 28 Jul 2003 09:09:37 -0700

On Sunday, Jul 27, 2003, at 21:53 US/Pacific, Craig Sutherland wrote:

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

Craig, thanks for above info. I have been using UI Element Inspector and had generated info similar to the above, which I presume is from the menu that Internet Connect places on the RIGHT SIDE of the Menu Bar when "Show modem status in the menu bar" is checked. The problem is that the name of the menu appears to be "" as identified by <AXMenu: ""> or AXParent: "<AXMenu: "">". How does one select this particular menu so one can select the menu name, which is labeled ie: "Internal Modem" or "Show time connected" on the AXTitle line?

Also, I downloaded UI Browser 1.1.1 and I agree... it is much easier than UI Element Inspector; however UI Browser does NOT show any of the menus on the right side of the Menu Bar... which is of no help in the menu I want to work with... unless Bill knows something that is not obvious.

All comments that will help me create a good syntax that will allow me to connect to via modem WITHOUT launching "Internet Connect"are appreciated. TIA... 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.
References: 
 >Re: Locating A Menu Item (From: Craig Sutherland <email@hidden>)

  • Prev by Date: Re: Starting directory for 'choose file'
  • Next by Date: Re: Locating A Menu Item
  • Previous by thread: Re: Locating A Menu Item
  • Next by thread: Re: Locating A Menu Item
  • Index(es):
    • Date
    • Thread