Turn zoom on & off in system preferences.

Hello all,

Im trying to fix a small bug which has arrisen… I like to have the zoom enabled in system prefs: accessibility. But after booting up the max the zoom is disabled, even though it says it IS ON in the prefs.

I thought it may be a quick fix to create a script that runs every time I start the mac that turns the zoom function on. I;ve tried a couple of time to write it, but I cant find the function to assign a variable to it.

Because the actual system prefs panel actually show the zoom to be on, when its not, perhaps the script should tunr it of then turn it on again.

I’ve been able to write scripts for lots of abode apps, but I am totally stuck with system prefs! :slight_smile:

Your Help is much appreciated! :slight_smile:
Daz

Model: 2010 i5 iMax
Browser: Firefox 5.0
Operating System: Mac OS X (10.6)

Ive been able to get started but still stuck on how i turn zoom on and off…

tell application “System Preferences”
activate
set current pane to pane “com.apple.preference.universalaccess”
set mywindow to window 1

end tell

tell application “System Events”
tell application process “System Preferences”
tell window “Universal Access”
tell tab group 1
set seeing_button to radio button “Seeing”
end tell
end tell
end tell
end tell

Thanks for your help :frowning:

Ive worked it out myself in case anyone else need it:

tell application “System Preferences”
activate
set current pane to pane “com.apple.preference.universalaccess”
end tell

tell application “System Events”
tell application process “System Preferences”
tell window “Universal Access”
tell tab group 1
tell radio group 3
set radio_1 to radio button 1
set radio_2 to radio button 2
click radio_2
click radio_1
end tell
end tell
end tell
end tell
end tell