I’m trying to write a script to change the desktop to a nuetral grey so that when I’m doing photoediting I can use a non-interfering colour as the background. Ideally I want to develop two scripts, so that having changed the desktop, edited the photos I can then change it back to the colour/picture that I want. I think this should be fairly easy once I done the first one, as it’ll just be a matter of tinkering with the code slightly to create a reversal script.
However I’ve hit a bit of a wall, (I’m fairly new to scripting) and I’d appreciate any help that forum members can give me. The code, as it is right now, is below. Please feel free to use and amend.
Michael Preston
tell application "Finder"
activate
select window of desktop
select window of desktop
tell application "System Preferences"
activate
end tell
tell application "System Events"
tell process "System Preferences"
click menu item "Desktop & Screen Saver" of menu "View" of menu bar 1
delay 3
tell window "Desktop & Screen Saver"
if (exists tab group 1) then
tell tab group 1
click radio button "Desktop"
delay 3
click radio button "Solid Colors"
delay 3
select "Solid Aqua Graphite"
end tell
end if
end tell
end tell
end tell
end tell