脚本如下:
tell application "System Events"
tell appearance preferences
set dark mode to not dark mode
end tell
end tell
运行切换系统模式
如果是明亮模式,运行后会变为暗黑模式。
反之,如果是暗黑模式,运行后则会切换到明亮模式。
tell application "System Events"
tell appearance preferences
set dark mode to not dark mode
end tell
end tell
运行切换系统模式
如果是明亮模式,运行后会变为暗黑模式。
反之,如果是暗黑模式,运行后则会切换到明亮模式。









