• I have an AS app that runs dependably and consistently in Script Editor.
• I launch it directly I get the error that AA not allowed.
• Except that it is. The app is checked in Accessibility.
• The app talks to Filemaker and Acrobat which are also checked in Accessibility.
• It has run directly in the past under a different name, which brings up another question:
Why do I get the message for a different app? What I mean is, I’m running “My app” and the message is “My previous app is not allowed Assistive Access”.
• Also, when I try to add the new app to AA, it allows me to select it but it never appears in the AA list.
Does the script contain any persistent variables — ie. properties, globals, and/or variables set in the run handler? If so, these and their values will be saved back to the script file when the script finishes running, which will alter the file, which in turn will cause the Security system to treat the app with suspicion.
You may find these pages on Late Night Software’s site helpful:
LouK. After upgrading to Mojave, I experienced many of the same issues, and there doesn’t appear to be any easy fix. One script, which used properties and I ran with Fastscripts, required a complete rewrite to eliminate the properties. Another script simply would not run and oddly insisted on keeping its prior name in Accessibility. That one was easily fixed by a simple copy and paste from the old to a new script with a previously-unused file name.
Hopefully some of this will be fixed in the next version of Mojave. Sorry I don’t have an easy solution, but you have company.