System Prefs > Desktop & Screen Saver > Desktop > Change picture: (checkbox).
so i'm trying to make a script that says if this checkbox is checked, than to uncheck it... simple right? not really... i kinda suck at applescript...
this is what i have so far...
and unfortunately it doesn't work. i receive this message from the compiler:
"System Events got an error: Can't make checked of checkbox "Change picture:" of group 1 of tab group 1 of window "Desktop & Screen saver" of application process "System Preferences into type reference."
any thoughts?
so i'm trying to make a script that says if this checkbox is checked, than to uncheck it... simple right? not really... i kinda suck at applescript...
this is what i have so far...
Code:
tell application "System Events"
tell application process "System Preferences"
if checked of checkbox "Change picture:" of group 1 of tab group 1 of window "Desktop & Screen Saver" is true then
set checkbox "Change picture:" of group 1 of tab group 1 of window "Desktop & Screen Saver" to false
end if
end tell
end tell
and unfortunately it doesn't work. i receive this message from the compiler:
"System Events got an error: Can't make checked of checkbox "Change picture:" of group 1 of tab group 1 of window "Desktop & Screen saver" of application process "System Preferences into type reference."
any thoughts?