Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use applescript to change a checkbox in the preferences box of Safari. I can open the preference window, but how to code the check box change?

Example: I'd like to toggle the check box for "Block pop-up windows" on tab "Security" of the preferences

tell application "Safari" to activate
   tell application "System Events"
      keystroke "," using command down
   end tell
   --some magic goes here
end tell
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.