I am trying to update an AppleScript that was in the Safari Services v1.3 group of Services. It is named Currency Converter.
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()
Jun 12, 2014 Enable Access To Assistive Devices via bash. Each entry in the Accessibility window is actually part of a database file. Using sqlite3, this file can be manipulated to add, remove, or modify items. To get osascript to work at the login window and be allowed access to assistive devices, run this command: If you are using tccutil.py. Universal Access is a preference pane of the System Preferences application. It includes four sub-components, each providing different options and settings. Turn On/Off Screen Zooming; Inverse Colors (White on Black, also known as reverse colors), ⌘ Command+⌥ Option+Control+8; Set Display to Greyscale (10.2 onwards). Enabling assistive devices on Mac OS X 10.9 & greater Updated September 08, 2016 03:12 Follow By default, a new install of OSX doesn't let iShowU see mouse and keyboard events. Enable Accessibility on macOS 10.10 Yosemite, 10.11 El Capitan, 10.12 Sierra and 10.13 High Sierra. Check the box next to 'Enable access for assistive devices'.
-- check to see if assistive devices is enabled
tellapplication 'System Events'
set UI_enabled to UI elements enabled
endtell
if UI_enabled isfalsethen
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'
endif
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?
You can upgrade to OS X El Capitan from OS X Snow Leopard or later on any of the following Mac models. Your Mac also needs at least 2GB of memory and 8.8GB of available storage space.
MacBook introduced in 2009 or later, plus MacBook (13-inch, Aluminum, Late 2008)
MacBook Air introduced in late 2008 or later
MacBook Pro introduced in mid 2007 or later
Mac mini introduced in early 2009 or later
iMac introduced in mid 2007 or later
Mac Pro introduced in early 2008 or later
Xserve models introduced in early 2009
To find your Mac model, memory, storage space, and macOS version, choose About This Mac from the Apple menu . If your Mac isn't compatible with OS X El Capitan, the installer will let you know.
Before installing any upgrade, it’s a good idea to back up your Mac. Time Machine makes it simple, and other backup methods are also available. Learn how to back up your Mac.
It takes time to download and install OS X, so make sure that you have a reliable Internet connection. If you're using a Mac notebook computer, plug it into AC power.
For the strongest security and latest features, find out whether you can upgrade to macOS Catalina, the latest version of macOS.
If you still need OS X El Capitan, use this link: Download OS X El Capitan. A file named InstallMacOSX.dmg will download to your Mac.
Double-click the downloaded file to open a window showing its contents. Then double-click the file within, named InstallMacOSX.pkg.
Follow the onscreen instructions, which will guide you through the steps necessary to install.
After installation of the installer is complete, open the Applications folder on your Mac, then double-click the file named Install OS X El Capitan.
Click Continue and follow the onscreen instructions. You might find it easiest to begin installation in the evening so that it can complete overnight, if needed.
Please allow installation to complete without putting your Mac to sleep or closing its lid. Your Mac might restart, show a progress bar, or show a blank screen several times as it installs both OS X and related updates to your Mac firmware.