Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Recurring "UI element scripting is not enabled." in Mavericks AppleScript System 10.9
If you use AppleScript applets to interact with UI elements, you may quickly find out that in Mavericks all seems to be broken. Every run results in System Preferences being opened to the pane that used to control UI Element Scripting, and finding the new controls in Security & Privacy -> Privacy -> Accessibility seems to have no effect.

This is a result of Mavericks splitting UI control authorization into per-app settings, combined with the Lion feature of remembering what windows an app had open when it was last closed.
  • Mavericks recognizes the app uniquely only as long as the app doesn't change.
  • WindowState information is stored in the app if you have permissions to modify it.
These two features end up caught in a fight.

The following Terminal command will prevent this by passing ownership of the applet to root and blocking you from editing it without authenticating.

sudo chown -R root:wheel AppletName.app

References:
OS X: Using AppleScript with Accessibility and Security features in Mavericks

    •    
  • Currently 1.42 / 5
  You rated: 1 / 5 (12 votes cast)
 
[8,675 views]  

Hint Options


Recurring "UI element scripting is not enabled." in Mavericks AppleScript | 2 comments | Create New Account
Click here to return to the 'Recurring "UI element scripting is not enabled." in Mavericks AppleScript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Recurring "UI element scripting is not enabled." in Mavericks AppleScript
Authored by: Typhoon14 on Nov 01, '13 12:27:58PM

This incredibly annoying behavior of applets causes all kinds of issues. For instance, if you codesign your applets (which Mavericks now lets you do directly from the "Export" menu in Script Editor), the codesigning breaks as soon as you run them. Thanks for the hint



[ Reply to This | # ]
Recurring "UI element scripting is not enabled." in Mavericks AppleScript
Authored by: musselrock on Nov 01, '13 08:51:09PM

There is a lot more on this at Sal Soghoian's Automation site. Sal is Automation Product Manager at Apple Inc.
See:
http://www.macosxautomation.com/mavericks/guiscripting/index.html



[ Reply to This | # ]