• 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 20:52:10 -0700

Craig, thanks for continuing to look into ways to complete my project. Given the lack of a command somewhere within a scripting addition to connect/disconnect a modem and/or not being able to utilize status menus on the right side of the Menu Bar, this simple project of mine has grown beyond my scope.

I'm sad about the roadblock, but I guess mousing to the modem menu is my MO unless someone is creative enough to produce a workaround... Jim

On Monday, Jul 28, 2003, at 16:49 US/Pacific, Craig Sutherland wrote:

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.

References: 
 >Re: Locating A Menu Item (From: Craig Sutherland <email@hidden>)

  • Prev by Date: Re: Locating A Menu Item
  • Next by Date: Re: terminal works, do shell script doesn't
  • Previous by thread: Re: Locating A Menu Item
  • Next by thread: Re: Locating A Menu Item
  • Index(es):
    • Date
    • Thread