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: Mon, 06 Nov 2017 08:59:53 -0700
>
> 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.
Yvan,
Good work!
What this suggests to me is that the menu item is actually being added by the
developer or at least being modified by the developer in some instances.
Otherwise it would be consistently added across all apps.
>
> 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.
I don’t believe we will be able to produce a solution that will work on all
localizations, without a good deal of work. Using the word Emoji would likely
work across the languages that use the western alphabet but I suspect won’t
work in other written languages, e.g. Cyrillic, Arabic, Asian or others…
Putting that issue aside, maybe the original choice of the menu bar item is a
simpler one for providing a solution to all of the apps. What do you think? The
timing issue that Jim was finding has me a little concerned. I was finding that
there might be a slightly longer time required when it was first triggered.
Subsequent triggering was faster. However, I never experienced a 5 second delay.
>
> 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
_______________________________________________
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