Re: Locating A Menu Item
Re: Locating A Menu Item
- Subject: Re: Locating A Menu Item
- From: Jim Lindholm <email@hidden>
- Date: Mon, 28 Jul 2003 11:46:20 -0700
On Monday, Jul 28, 2003, at 11:06 US/Pacific, Kok Ooi Kong wrote:
>
Hi,
>
With regards to the modem status menu, some facts facts:
>
1. this item does not belong to app "Internet Connect" but to a hidden
>
app "SystemUIServer" - you can see it in UI Element Inspector
>
2. the item on the right side of the menu bar is not GUI-scriptable as
>
it is not enabled. Those items that are scriptable have an enabled
>
status in UI Element Inspector.
>
3. If the modem status menu belong to Internet Connect you still need
>
to activate Internet Connect and bring it to the front to do GUI
>
scripting. I am assuming that you are trying to connect modem without
>
using Internet Connect.
>
>
>so far have not been able to identify the modem status menu from
>
>the Internet Connect application in the menu bar. In the UI Element
>
>Inspector, it appears to be identified as <A X Menu: "">; however I
>
>have not been able to translate it to something that AS understands.
>
>
>
>Does anyone know if the menu can be identified by a name, number,
>
>position... or anything else?
Thanks for info on SystemUIServer... I kept seeing it when I was
looking at the modem status menu and you're correct... I did think that
Internet Connect was placing it in the Menu Bar instead of simply
activating it.
You say those "item on the right side of the menu bar is not
GUI-scriptable because they are not enabled"; however items in the menu
are enabled ie: "Connect" or "Open Internet Connect..." therefore,
there must be some way to access the enabled items.
In the System Events dictionary under Class Menu, it lists "menu by
name, numeric index, relative position, range, test". Wouldn't the
items on the right side of the Menu Bar have at least one valid way of
accessing the array that the enabled menu choice resides in?
And... yes, you are correct, I am trying to script a modem connection
WITHOUT using Internet Connect... 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.