Re: Show Emoji & Symbols GUI access
Re: Show Emoji & Symbols GUI access
- Subject: Re: Show Emoji & Symbols GUI access
- From: Jean-Christophe Helary <email@hidden>
- Date: Sun, 5 Nov 2017 20:05:21 +0900
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
> On Nov 5, 2017, at 19:59, Yvan KOENIG <email@hidden> wrote:
>
> Hello
>
> You may try with :
> tell application id "com.apple.systemevents" -- System Events
> tell application process "SystemUIServer"
> set frontmost to true
> -- role of UI elements --> {"AXMenuBar"}
> tell UI element 1
> -- set extrasAvailables to description of menu bar items
> --> {"Centre de notifications", "Siri", "AppleScript",
> "time machine", "bluetooth", "text input", "volume 44 %", "Horloge", "Wi-Fi,
> Wi-Fi non activé."}
> set InputItem to false
> repeat with i from 1 to count extrasAvailables
> if extrasAvailables's item i = "text input" then
> set InputItem to i
> exit repeat
> end if
> end repeat
> if InputItem is false then error "The menu extra “text
> input” isn’t available !"
> tell menu bar item InputItem
> click it
> tell menu 1
> --name of menu items --> {"Afficher le
> visualiseur de clavier", "Afficher les Emoji et symboles", missing value,
> "Ouvrir les préférences Clavier…"}
> click menu item 2
> end tell
> end tell
> end tell
> end tell
> end tell
>
> Yvan KOENIG running High Sierra 10.13.1 in French (VALLAURIS, France)
> dimanche 5 novembre 2017 11:59:32
>
>
>
> _______________________________________________
> 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
Jean-Christophe Helary
-----------------------------------------------
@brandelune http://mac4translators.blogspot.com
_______________________________________________
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