The solution was to create an Automator application with the same AppleScript. For some reason, Sonoma has no trouble with Assistive access for Automator applications.
The solution was to create an Automator application with the same AppleScript. For some reason, Sonoma has no trouble with Assistive access for Automator applications.