Re: Show Emoji & Symbols GUI access
Re: Show Emoji & Symbols GUI access
- Subject: Re: Show Emoji & Symbols GUI access
- From: Yvan KOENIG <email@hidden>
- Date: Mon, 6 Nov 2017 16:24:34 +0100
> Le 6 nov. 2017 à 15:50, Jean-Christophe Helary
> <email@hidden> a écrit :
>
>
>
>> On Nov 6, 2017, at 23:43, Yvan KOENIG <email@hidden
>> <mailto:email@hidden>> wrote:
>>
>>>> I believe that menu item is automatically added by the OS, not by the
>>>> developer.
>>>
>>> I think you're correct.
>>
>> The menu is not installed automatically.
>> It's ruled from the System PrefPane Keyboard which has a dedicated checkbox
>> entitled (in the french version):
>
> Yes, for the menu bar. But it is always at the bottom of the Edit menu,
> regardless of that setting. Hence the ability to modify it from System
> Preferences that David demonstrated and that does not work on my machine
> (although, considering the number of things that don't work here, I should
> maybe a bit more suspicious...)
>
>
> Jean-Christophe Helary
Here on the French system I tested several shortcuts.
CAUTION, the system requires a perfect spelling of the menu item.
Some applications such as my good old friend Hexedit have no Emoji menu item.
Some are localized and some aren't. So the menu item may be spelled : "Emoji et
symboles" or "Emoji & symbols" or an other version.
Only ctrl + cmd + E works.
My first attempt was ctrl + cmd + é but the system registered ctrl + cmd + É
and it failed.
Here is an alternate script which doesn't use the Extra menu but the Edit one.
From my point of view it's not a good idea because some applications haven't
the Emoji menu item.
My good old friend Hexedit is one of them.
tell application id "com.apple.systemevents"
tell (first process whose frontmost is true) to tell menu bar 1
--get name of menu bar items
(*{
01 - "Apple",
02 - "???????",
03 - "Fichier",
04 - "Édition",
…}
*)
set mt to 4
get name of menu bar item mt -- {"Édition"}
tell menu bar item mt to tell menu 1
set itemEmoji to first menu item whose name contains
"Emoji"
click itemEmoji
(*
# Alternate which doesn't rely upon the spelling
# but may fail if an application added an extraneous item at the bottom of the
menu
set mi to -1
--get name of menu item mi --{"Emoji et symboles"}
click menu item mi
*)
end tell
end tell
end tell -- System Events
Yvan KOENIG running High Sierra 10.13.1 in French (VALLAURIS, France) lundi 6
novembre 2017 16:14:57
_______________________________________________
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