tofi86 / universalJavaApplicationStub

universalJavaApplicationStub - an alternative Application launcher script for Java based macOS Apps that works with both Apple's and Oracle's PList format and supports the old Apple Java 6 as well as all the latest Oracle/OpenJDK/Adopt/Corretto JRE's/JDK's. Plus it supports drag&drop to the Dock icon 🎉

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

On latest macOS, the AppleScript dialogs do not show, blocked by Apple's security measures

tofi86 opened this issue · comments

On latest macOS, the AppleScript dialogs (missing Java, wrong Java, etc.) do not show. They are blocked by Apple's security measures:

grafik

After confirming with "OK", the dialog is shown.

For normal users however, this sounds like the App need access to Files and Documents via "System Events.app", althought the App doesn't.

It's really just the osascript call to show a warning.

Does anyone have an advice whether there's a simple solution to make the AppleScript dialogs work again without this security dialog?

Everyone should at least set this property in their Info.plist:

<key>NSAppleEventsUsageDescription</key>
<string>There was an error while launching the application. Please click OK to display a dialog with more information or cancel and view the syslog for details.</string>

The message itself is just a sample...

Added to v3.0.5 milestone to add a note about that in README.md.

Added to v3.0.5 milestone to add a note about that in README.md.

done.

Is it known whether this issue affects the compiled binary version of the stub, or is it specific to the shell script?