Mojave: AEDeterminePermissionToAutomateTarget returns incorrectly when askUserIfNeeded is NO
Originator: | pfandrade | ||
Number: | rdar://44049802 | Date Originated: | |
Status: | Resolved: | ||
Product: | AppKit | Product Version: | 10.14 |
Classification: | Reproducible: |
When an application is denied access, AEDeterminePermissionToAutomateTarget returns values inconsistently depending on the askUserIfNeeded parameter. When sending events to a target app has been denied by the user this call: AEDeterminePermissionToAutomateTarget(aeDesc, typeWildCard, typeWildCard, NO) returns errAEEventWouldRequireUserConsent. But this call: AEDeterminePermissionToAutomateTarget(aeDesc, typeWildCard, typeWildCard, YES) returns errAEEventNotPermitted. Expected results: Both calls should return errAEEventNotPermitted Comments
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!