Re: AppleScript System Events help
Re: AppleScript System Events help
- Subject: Re: AppleScript System Events help
- From: Denny Davis <email@hidden>
- Date: Thu, 11 Feb 2016 19:36:52 -0800
This bit runs ok in testing, which is good, however it does not solve my basic problem.
Once I get to the proper Preference Pane, I need to Set some App to be able to control my Computer.
The Problem is what App to set.
I need to set some particular App to have permission to control my Computer and right now I don’t know of any, so that means I can’t fix the script properly.
So is there a way to get the Script to Run, with the current OS X 10.11.4? On Feb 11, 2016, at 01:08 , Christopher Stone < email@hidden> wrote:
On Feb 10, 2016, at 21:59, Denny Davis < email@hidden> wrote: I am trying to update an AppleScript that was in the Safari Services v1.3 group of Services.
______________________________________________________________________
Hey Denny,
I think this is what you're looking for.
------------------------------------------------------------------- on GUIScripting_status() # Check to see if assistive devices is enabled tell application "System Events" to set UI_enabled to UI elements enabled if not UI_enabled then tell application "System Preferences" activate set current pane to pane id "com.apple.preference.security" tell pane id "com.apple.preference.security" reveal anchor "Privacy_Accessibility" end tell end tell end if return UI_enabled end GUIScripting_status
GUIScripting_status() -------------------------------------------------------------------
|
_______________________________________________
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