I am trying to update an AppleScript that was in the Safari Services v1.3 group of Services.
Here is description: The selected numeric value in Safari will be entered in the Calculator application and the currency conversion sheet activated. Requires support for assistive devices be enabled in the Universal Access preference pane. Scope: Selected text in Safari
Here is a snippet of code that I am trying to work with:
on GUIScripting_status() -- check to see if assistive devices is enabled tell application "System Events" set UI_enabled to UI elements enabled end tell if UI_enabled is false then run script "tell application \"System Preferences\" activate set current pane to pane id \"com.apple.preference.universalaccess\" display dialog \"This script utilizes the built-in Graphic User Interface Scripting architecture of Mac OS X which is currently disabled.\" & return & return & \"You can activate GUI Scripting by selecting the checkbox “Enable access for assistive devices” in the Universal Access preference pane.\" with icon 1 buttons {\"Cancel\"} default button 1 end tell" end if return UI_enabled end GUIScripting_status
I am using OS X 10.11.4 beta and the System Preferences that this script used have been changed, this I know, so can someone please help me modify the code to work with El Capitan 10.11.4?
|