`We are using Java to get the active application running on macOS using AppleScript.
“osascript”,
“-e”,
“tell application “System Events” to get the name of application processes whose frontmost is true”
This code is working fine, but when we enable the sandbox using an entitlement file, it stops working.
Please help me solve this issue.
we add this key in info.plist file NSAppleEventsUsageDescription
Talygen wants access to control “Google Chrome”. Allowing control will provide access to documents and data in “Google Chrome”, and to perform actions within that app.
and also add this key in com.apple.security.automation.apple-events
entitlements file and sign the application. But its not working.`
MISSION AIRFORCE is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.