Re: Script to click on NSStatusItem menu & its submenus
Re: Script to click on NSStatusItem menu & its submenus
- Subject: Re: Script to click on NSStatusItem menu & its submenus
- From: Philip Aker <email@hidden>
- Date: Sat, 04 Aug 2007 10:35:58 -0700
On 2007-08-04, at 02:23:48, parag vibhute wrote:
I followed following link:
http://lists.apple.com/archives/applescript-users/2007/Mar/
msg00146.html
There it is written as below:
So how do these Menu Extras differ from third-party menu status items?
From what I've gathered so far, many of the latter are developed as
individual (faceless, background-only) applications - probably
using a separate API intended for third-party developers: the
NSStatusItem class. These apparently differ from Apple's Menu
Extras in a number of ways; they don't operate within the
SystemUIServer address space - and can't usually be repositioned or
removed by command-dragging. (Removal is normally accomplished by
selecting the "Quit" option from the menu.)
In the context of this discussion, they also can't be accessed via
SystemUIServer's GUI. In theory, GUI access would be through the
individual application process; typically <AXApplication:
"application name"/AXButton>. In practice, at least from initial
tests, GUI Scripting seems unable to hook into any such UI element.
If the same is true of the OP's target application, then I fear he
may be out of luck.
Have u found out solution for this? I require to do same thing
i.e. want to click on third-party menu status items( in this case
it is my application's menu status item).
I have not tried to enable the one NSStatusItem menu I've made with
accessibility. However if you look in: "/Developer/Applications/
Utilities/Accessibility Tools" there is Accessibility Verifier.app
and when I selected my menu item from it, it clearly showed what I
have not implemented.
I can't say if you fix that up you can get your menu item to be
recognized or whether or not you would also have to make your
application AppleScript-able.
In any case, the better list for this question is the AppleScript-
Implementors list: <http://lists.apple.com/mailman/listinfo/
applescript-implementors>. The person who knows the most about
accessibility is Bill Cheeseman <http://prefabsoftware.com/> and he
is a member of that list. I can't say if he knows the answer to your
question though.
Philip Aker
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden