I’ve upgraded to Mojave and now get an error Not authorised to send Apple events to Mail. when I try to run:
**tell application “Mail” to set ListMessage to selection – take all emails selected
How do I fix this?
I’ve upgraded to Mojave and now get an error Not authorised to send Apple events to Mail. when I try to run:
**tell application “Mail” to set ListMessage to selection – take all emails selected
How do I fix this?
This error does not occur when I use Script Editor, only Script Debugger.
I have given Script Debugger Full Disk Access in the Security & Privacy section of Settings.
You need to give Script Debugger permission under Automation
, not (or as well as) Full Disk Access
.
This seems to have done the trick. Thanks!