You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mojave AppleScript app security issue

Using System Preferences - Security & Privacy, how do I set access for an applescript that is causing a dialog that looks like this: DIM2.2.app wants access to control Finder.app

I've added DIM2.2.app to the "Full Disk Access" panel, and it didn't help.

Posted on Feb 16, 2020 2:59 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 16, 2020 5:20 PM

I found an answer that works. I had an applescript that does a dialog upon being launched, and that was causing the nuisance dialog. I eliminated the dialog at the start of the 'on run' code that does a "Save" of the Desktop icons.. I realized that drag-and-drop of a folder of the application would still trigger 'on open' to do the "Restore" I created a new.app and launched it by double-clicking its icon. The nuisance dialog appeared, and I OK'd it. I then draged-and-dropped a folder on the new.app icon, and got another nuisance dialog, which I OK'd. That did a "Restore". From then on, either launching or drag-and-drop worked properly without nuisance dialogs. So I now have a single application that either Saves the Desktop, or Restores it, depending upon how it is triggered. Of course, this app must be on the Desktop to be accessible. In System Preferences - Security & Privacy, it's the Automation tab that records the use of such applications.

Similar questions

2 replies
Question marked as Top-ranking reply

Feb 16, 2020 5:20 PM in response to Barney-15E

I found an answer that works. I had an applescript that does a dialog upon being launched, and that was causing the nuisance dialog. I eliminated the dialog at the start of the 'on run' code that does a "Save" of the Desktop icons.. I realized that drag-and-drop of a folder of the application would still trigger 'on open' to do the "Restore" I created a new.app and launched it by double-clicking its icon. The nuisance dialog appeared, and I OK'd it. I then draged-and-dropped a folder on the new.app icon, and got another nuisance dialog, which I OK'd. That did a "Restore". From then on, either launching or drag-and-drop worked properly without nuisance dialogs. So I now have a single application that either Saves the Desktop, or Restores it, depending upon how it is triggered. Of course, this app must be on the Desktop to be accessible. In System Preferences - Security & Privacy, it's the Automation tab that records the use of such applications.

Feb 16, 2020 4:47 PM in response to dickguertin

Most Likely Accessibility in the Security & Privacy System Preferences, Privacy tab.


Full Disk Access is giving the app access to files and folders throughout the disk as opposed to in its sandboxed area of the file system.

Controlling other apps has been part of Accessibility for a long time. I assume it is because you would use Accessibility programs to control other apps.

Mojave AppleScript app security issue

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.