Re: Locating A Menu Item
Re: Locating A Menu Item
- Subject: Re: Locating A Menu Item
- From: Craig Sutherland <email@hidden>
- Date: Mon, 28 Jul 2003 18:49:15 -0500
Jim,
Apple was/is not encouraging menus on the right side of the menu bar.
There are the familiar hacks around as workarounds. I was looking
through the Cocoa documentation and found the term Status Bars.
<
http://developer.apple.com/documentation/Cocoa/Conceptual/StatusBar/
Concepts/aboutstatusbars.html>
<
http://developer.apple.com/documentation/Cocoa/Conceptual/StatusBar/
index.html#//apple_ref/doc/uid/10000073i>
So, these are not menus per se, they just live on the same latitude.
There are links from the uris above giving examples of the Obj-C code
to implement them. I wonder if Applescript Studio could be used to
weave together AS and the Cocoa AppKit.framework.
Craig
On Monday, July 28, 2003, at 01:46 PM, Jim Lindholm wrote:
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.
>snip<
Does anyone know if the menu can be identified by a name, number,
position... or anything else?
>snip<
.
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?
>snip<
_______________________________________________
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.