Re: Show Emoji & Symbols GUI access
Re: Show Emoji & Symbols GUI access
- Subject: Re: Show Emoji & Symbols GUI access
- From: 2551phil <email@hidden>
- Date: Sun, 5 Nov 2017 16:50:08 +0700
Double-check that you have got Script Debugger and System Events (and Script
Editor, if you’re using that) in the list of applications allowed accessibility
in System Preferences > Security & Privacy > Accessibility > Privacy.
If that’s not the problem, I suggest you iterate the innermost UI element
number in this script from 1 to 20 or so till you find what works, and work
backwards from that. As 1 it should open the Notification Center; as 2 it
doesn’t do anything here, for 3 I get Siri, etc etc.
tell application id "com.apple.systemevents" -- System Events
tell its application process "SystemUIServer"
tell its UI element 1
tell its UI element 1 — iterate from 1 thru 20 here and
see what get's clicked
perform action "AXPress"
end tell
end tell
end tell
end tell
Best
Phil
@sqwarq
> On 5 Nov 2017, at 16:40, Jean-Christophe Helary
> <email@hidden> wrote:
>
>
>
>> On Nov 5, 2017, at 18:14, 2551phil <email@hidden> wrote:
>>
>>
>>> On 5 Nov 2017, at 16:08, Jean-Christophe Helary
>>> <email@hidden> wrote:
>>>
>>> It doesn't work. It must be something with my system. No idea.
>>
>> Assuming that means there’s no error in the event log, are you sure you’re
>> dragging out this?
>
> Yes. What happens is that the script runs, nothing happens, then if I click
> on the input menu (not on the Emoji item, the top menu with the US flag), the
> viewer appears.
>
> I had a similar behavior when I set system shortcuts to access "Go to
> favorites" (one for each favorite) in Mail.
>
> I don't have time to investigate that right now though :-(
>
> Jean-Christophe Helary
> -----------------------------------------------
> @brandelune http://mac4translators.blogspot.com
> <http://mac4translators.blogspot.com/>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden
> <mailto:email@hidden>)
> Help/Unsubscribe/Update your Subscription:
>
> Archives: http://lists.apple.com/archives/applescript-users
> <http://lists.apple.com/archives/applescript-users>
>
> This email sent to email@hidden <mailto: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