How to set UI Elements Enabled to true in Applescript? -



How to set UI Elements Enabled to true in Applescript? -

tell application "system events" if ui elements enabled true tell application "system preferences" activate set current pane pane id "com.apple.preference.universalaccess" display dialog "this script requires access assistive evices enabled." & homecoming & homecoming & "to continue, click ok button , come in administrative password in forthcoming security dialog." icon 1 end tell set ui elements enabled true if ui elements enabled false homecoming "user cancelled" delay 1 end if end tell

when run this, error. "can’t set ui elements enabled of application true"

any ideas why may happening?

extra info: os x yosemite

i answered basic question recently. see reply here.

applescript

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -