Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mpainesyd

macrumors 6502a
Original poster
Nov 29, 2008
689
168
Sydney, Australia
i have an Applescript-generated app for taking screen snapshots which has worked well for many years of OSX/macOS updates. I have just installed Mojave 10.14.1 and the App generates an error like "not authorised to send keystrokes..". I have added the app to the Accessibility list in Security preferences but don't seem to be able to add it to the Automator list (there is no +/- option for the (empty) list). I have tried recompiling the app from the Applescript, which Opens Graphic Converter and sends some keystrokes that create a new image file using the clipboard (details of the Applescript are here http://mpainesyd.com/idisk/Public/snap2GC.scpt ).
This seems to have something to do with the new security features of Mojave.
Workarounds?
 
I seem to have found a temporary solution. Bizarrely I needed to grant Full Disk Access to the app...
upload_2018-11-13_16-29-31.png


This doesn't seem to be a very good "security" setting but I will persevere with it until another solution comes along.
Thanks to philastokes for this tip: https://applehelpwriter.com/2018/09/24/mojave-not-authorized-to-send-apple-events/

Update: That worked for my Macbook but the iMac would not allow the change: "There was an error in Security & Privacy preferences"...

I managed to fix it by copying over a previous version of the app, complied under High Sierra. It seems that compiling Applescript under Mojave results in the bug. I was able to grant Full Disk Access and Accessibility access to the older compiled app and now it works.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.