Re: Menulet scripting
Re: Menulet scripting
- Subject: Re: Menulet scripting
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 27 Jun 2017 05:43:24 -0400
> On Jun 27, 2017, at 1:22 AM, Bob Stern <email@hidden> wrote:
>
> Is there any way to programmatically control a menulet (menu extra)?
>
> In my experiments, UI Scripting cannot do it (PFiddlesoft UI Browser cannot
> see a menulet), and OS X Prefs cannot assign a keyboard shortcut to a menu
> item in a menulet.
I have forgotten the details because I haven't yet reported this to Apple, but
there is a bug in (I believe) macOS Sierra 10.12. The bug is a parent-child
mismatch in the Apple part (I believe) of the menu extras bar. In addition, the
Apple part of what used to be (I believe) a single menu extras bar is now in (I
believe) Sierra turned into 'menubar 2', while the third-party part is 'menubar
1'.
This bug prevents GUI scripting the Apple menu extras, and it prevents UI
Browser from seeing them. Otherwise, all menu extras have always been GUI
scriptable and manageable by UI Browser, at least to the extent of letting you
open the menus and click the menu items. UI Browser installs example scripts
that show how to do this.
I will pin down the details and report this to Apple as soon as I have the time.
--
Bill Cheeseman - 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