• 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
AppleScript System Events help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript System Events help


  • Subject: AppleScript System Events help
  • From: Denny Davis <email@hidden>
  • Date: Wed, 10 Feb 2016 19:59:59 -0800

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?

 _______________________________________________
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

  • Follow-Ups:
    • Re: AppleScript System Events help
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: Sparkle updater check vulnerability script
  • Next by Date: Fwd: AppleScript System Events help
  • Previous by thread: Re: PSA: Does your app use Sparkle? Update it, or use an HTTPS server
  • Next by thread: Re: AppleScript System Events help
  • Index(es):
    • Date
    • Thread