Not authorised to send Apple events to Mail

I am attempting to import mailboxes from Mail.app into Eagle Filer on a MacOS 12.7.5 system and am getting AppleScript errors.

I am trying two different techniques and get errors with both.

  1. I select two mail boxes
  2. I hit the capture key
  3. I get an error dialog saying “AppleScript Error: EagleFiler encountered an AppleScript error while trying to capture from Mail - Not authorised to send Apple events to mail. (line 0)”

  1. I select two mail boxes
  2. I run “Import from Apple Mail” from the Scripts menu
  3. I get an error dialog saying “Not authorised to send Apple events to Mail (-1743)”

Many thanks for any suggestions.

Please make sure that you’ve granted EagleFiler Automation access.

OK thanks, that seemed really obvious (I was not searching for the correct terms).

However, it still does not work.

  1. In System Preferences > Security & Privacy > Automation, I enable both EagleFiler.app & Import From Apple Mail.app to be able to access Mail.app.
  2. I exit the setting and re-enter to ensure the setting stuck.
  3. I restart the machine, check the setting then relaunch Mail.app & EagleFiler.app
  4. In Mail.app I select mailboxes, then hit the capture key.
  5. EagleFiler.app throws up the same error as before.
  6. I look in System Preferences and see that EagleFiler.app’s permission to automate Mail.app has deselected itself.

I try this again, this time triggering the AppleScript in the Scripts menu. The same failure occurs, the same deselection of the privilege occurs.

It sounds like there may be something wrong with your Mac’s privacy database. Please see the Troubleshooting Automation Access section at the bottom of that page.

Yes, that approach fixed it, I needed to take the route of disabling SIP, deleting the db etc.
Thanks for persevering.

1 Like