Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

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

Open
tofi86 opened this issue Dec 8, 2019 · 4 comments
Assignees

Comments

@tofi86
Copy link
Owner

tofi86 commented Dec 8, 2019

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?

@tofi86
Copy link
Owner Author

tofi86 commented Dec 8, 2019

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...

@tofi86 tofi86 added this to the Version 3.0.5 milestone Dec 8, 2019
@tofi86
Copy link
Owner Author

tofi86 commented Dec 8, 2019

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

@tofi86 tofi86 self-assigned this Dec 8, 2019
tofi86 added a commit to tofi86/universalJavaApplicationStubDemo that referenced this issue Dec 8, 2019
@tofi86 tofi86 removed this from the Version 3.0.5 milestone Dec 9, 2019
@tofi86
Copy link
Owner Author

tofi86 commented Dec 9, 2019

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

done.

tofi86 pushed a commit to paginagmbh/EPUB-Checker that referenced this issue Mar 20, 2020
@Sailsman63
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants