Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

1 Answer 1

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.