Authorization error when running AppleScript

#1

Describe the bug
I am trying to run a simple AppleScript via a gesture to show the PopClip application (see below). When I set a gesture to the Predefined Action and enter that Apple Script and hit Run Script it says "not authorized to send apple events to PopClip" (see attached image). Can you please help me resolve this issue? Thanks!
tell application "PopClip"
appear
end tell

Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
MacBook Pro 13" 2015 Trackpad

Screenshots


Device information:

  • Type of Mac: Macbook Pro 13" 2015
  • macOS version: 10.14.4
  • BetterTouchTool version: 2.807

Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):

Note: Before bug reporting, please make sure you have the latest version of BetterTouchTool and that you have already tried to restart your system :-). If you encounter a crash, please attach a crash log from the macOS Console.app from the "User Diagnostic Reports" section.

0 Likes

#2

Make sure BTT has the permissions to send events to popclip in System PReferences => Security & Privacy => Privacy => automation

0 Likes

#3

Thanks for getting back to me so quickly! I don't see BetterTouchTool listed under Automation

0 Likes

#4

Then you most likely hit some macOS bug. Which version of macOS are you running?
It should automatically add any app that wants to control other apps there.

//edit: ah sorry, just saw you are running 10.14.4. Weird! Haven't seen that issue on that version yet :frowning:

0 Likes

#5

I just made a quick change in v2.808 that may force macOS to re-request the permissions.
It will be available via "check for alpha version updates " in a few minutes.

0 Likes

#6

Thanks I upgraded to the latest alpha version (2.809) but it hasn't resolved the issue

0 Likes

#7

@Andreas_Hegenberg are there any other things I can try to resolve the Authorization error issue?

0 Likes

#8

Possibly try to reset the macOS privacy / security database, sometimes it gets corrupted.

This terminal command may work:

sudo tccutil reset All

1 Like

#9

That fixed the issue! Thanks so much for your help on this!!

0 Likes