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: Sun, 5 Nov 2017 11:59:46 +0100
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