Re: Show Emoji & Symbols GUI access
Re: Show Emoji & Symbols GUI access
- Subject: Re: Show Emoji & Symbols GUI access
- From: David Gregg <email@hidden>
- Date: Sun, 05 Nov 2017 09:01:19 -0700
Yvan and Jean-Christophe,
This is in-line with Yvan’s solution. I have found that triggering menu items
in any application doesn’t seem to need the app to be frontmost. So in that way
they act as if any app has that feature built in like a script dictionary.
I believe you should be able to trigger any of the SystemUIServer items by just
setting the value of the attribute “AXDescription" to the appropriate
description for that menu bar item.
tell application "System Events"
tell process "SystemUIServer"
set keyboardExtras to first item of (menu bar items of menu bar
1 whose value of attribute "AXDescription" = "text input")
tell keyboardExtras to perform action "AXPress"
end tell
end tell
> On Nov 5, 2017, at 8:38 AM, Yvan KOENIG <email@hidden> wrote:
>
>
>
>> Le 5 nov. 2017 à 12:05, Jean-Christophe Helary
>> <email@hidden <mailto:email@hidden>>
>> a écrit :
>>
>> Yvan,
>>
>> Thank you very much. This works. It produces a lot of activity on the menu
>> (because of the "frontmost" I guess) but otherwise it produces the desired
>> effect.
>>
>> Jean-Christophe
>
>
> I am accustomed to set frontmost to true but I'm not sure that it's a good
> idea when the target process is UIServer.
> Try to disable the instruction.
> Here it works better when it's disabled.
> I apologize for the instruction :
> set extrasAvailables to description of menu bar items
> which was wrongly disabled.
>
> Yvan KOENIG running High Sierra 10.13.1 in French (VALLAURIS, France)
> dimanche 5 novembre 2017 16:38:01
>
>
>
> _______________________________________________
> 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
_______________________________________________
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