tell application "System Events"
tell appearance preferences
set darkMode to dark mode
log darkMode
end tell