• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessibility
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessibility


  • Subject: Re: Accessibility
  • From: Bill Cheeseman <email@hidden>
  • Date: Thu, 06 Oct 2016 06:16:09 -0400


On Oct 5, 2016, at 11:36 PM, Brian Christmas <email@hidden> wrote:

Some time ago, Bill wrote this as a way of reading the Accessability of a App.

However, under Sierra,  this seems to always return a true....

tell application "System Events" to set GUIScriptingEnabled to UI elements enabled -- read-only in OS X 10.9 Mavericks and newer

It works fine here under macOS v10.12.0 Sierra. You don't say how you're running it, so I have no idea why it would always return true for you.

I am running it in a Script Editor window and reading the value in the Script Editor window's Result pane. I open the Privacy tab in the Security & Privacy pane of System Preferences, select the Accessibility List, authenticate to open the lock, and uncheck Script Editor in the Accessibility list. I then run the script in Script Editor, and it returns false. Then I check Script Editor in the Accessibility list, run the script in Script Editor, and it returns true. All as advertised.

It reports whether accessibility is enabled for the application that is running the script. When you run a script in Script Editor, that is Script Editor. When you run it in some other application or as an applet, that is whatever application is running the script.

-- 

Bill Cheeseman - email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Accessibility (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Accessibility
  • Next by Date: Keycode - dead hourse
  • Previous by thread: Re: Accessibility
  • Next by thread: Calling AppleScript from delegate methods
  • Index(es):
    • Date
    • Thread