# Automation

Next, we need to give MsgFiler 4 permission to send Apple Events to Mail. If you have enabled the MsgFiler Filing Script, you will also give permission for MsgFiler 4 to communicate with the System Events application through the Filing Script.

<figure><img src="https://4639002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVWOEW6NaDJ95yKpBphJ%2Fuploads%2F7XziQNw57LN3VKRc1nvd%2Fonboarding-enable-automations-430.png?alt=media&#x26;token=ffa0a016-c5fa-43ff-a480-c9f1b52d004a" alt="" width="563"><figcaption></figcaption></figure>

1. Click on the **Verify Mail** button. A prompt will appear from macOS asking you to grant MsgFiler 4 permission to communicate with the Mail app using AppleScript.
2. Click **Allow**.

<figure><img src="https://4639002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVWOEW6NaDJ95yKpBphJ%2Fuploads%2F1mo3HuhKnoG41tRutxuo%2Fonboarding-automation-mail.png?alt=media&#x26;token=bf9d4201-9f7d-450f-a482-9b7ca32a200c" alt="" width="563"><figcaption></figcaption></figure>

3. If you have enabled the use of the MsgFiler Filing Script, click **Verify System Events**. Another prompt will appear from macOS asking you to grant MsgFiler 4 permission to communicate with System Events.
4. Click **Allow**.

<figure><img src="https://4639002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVWOEW6NaDJ95yKpBphJ%2Fuploads%2F9Dx1iiizjxWE8gFUYlSw%2Fonboarding-automation-system-events.png?alt=media&#x26;token=e89b035b-4dd9-4e6f-a401-f22f4c337e39" alt="" width="563"><figcaption></figcaption></figure>

When both Mail and System Events have been verified, you will see this screen. You can then click **Next** to go to the next onboarding step.

<figure><img src="https://4639002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTVWOEW6NaDJ95yKpBphJ%2Fuploads%2FOPaXcAbXWQP6h9R8GUJM%2Fonboarding-automations-enabled-430.png?alt=media&#x26;token=f775542c-0ea9-4f54-98cc-49fa3f650718" alt="" width="563"><figcaption></figcaption></figure>
