I have a Package installer, when the installation done, it will show https://img-c.udemycdn.com/redactor/raw/q_and_a/2021-09-16_01-58-30-35226f3790a6848d7036b851d60c1d54.png I want to use applescript find the top left close button(x) and disable it, is it possible?
AppleScript: how to find the system close button of a window and disable it
is it possible?
No. AppleScript’s ability to introspect and then manipulate the UI is based on the system’s accessibility support. That support does not let you disable arbitrary UI elements.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"