I am using an AppleScript app (i.e., an AppleScript exported to an OS X app) to copy the message ID of an e-mail currently selected in Mail.app to the clipboard.
Whenever I run the AppleScript app, I have to confirm that it is allowed to read the message ID from Mail.app. That is, I get a popup asking:
“Get-E-Mail-Message-ID.app“ wants access to control “Mail.app“. Allowing control will provide access to documents and data in “Mail.app“, and to perform actions within that app. This script needs to control other applications to run.
With two buttons, [Don't Allow] and [OK]. So I always have to click [OK].
Is it possible to permanently grant my app to read data from Mail.app?
I have already found System Preferences -> Security & Privacy -> Privacy, and checked the box under "Allow the apps below to control other apps.", but still get the popup whenever I run the AppleScript app.