Hi folks
I am trying to run some automation to set certain settings in sonoma via osascript ( and applescript ) directly. Here are the things I am trying to do on Sonoma MacOs 14.1.1 and I cannot find the property or way to do this via tell “System Events” or another way- can someone provide an apple script with the correct settings to do this on Sonoma-and I dont want to use automator - only via the terminal and osascript to execute since this code needs to be executed on a bunch of hosts
-
Change resolution to `1920 x 1080’
-
Change default dynamic wallpaper and appearance :
-
System Settings
→Wallpaper
→Colors
→Black
-
System Settings
→Appearance
→Appearance
→Light
-
Limit
Terminal
scrollback to set to a particular limit say 5000 -
Change the Computer name and hostname:
-
System Settings
→General
→About
→Name
: xxxxx -
System Settings
→General
→Sharing
→Local hostname
→ xxxxx -
Disable WiFi, Bluetooth and Thunderbolt
-
System Settings
→Wi-Fi
→ click to disable -
System Settings
→Bluetooth
→ click to disable →Turn off
-
System Settings
→Network
→Bluetooth PAN
→Make Inactive
-
System Settings
→Network
→Thunderbolt Bridge
→Make Inactive
-
Enable Firewall
System Settings
→Network
→Firewall
→Turn On Firewall
-
Change DNS to
x.x.x.x, y.y.y.y.
( x and y are just values) - its the DNS applescript cmd -
setup automatic login to a particular user
-
Disable screen saver
System Settings
→Lock Screen
→Start Screen Saver when inactive
→Never
.
System Settings
→Lock Screen
→Turn display off when inactive
→Never
.
thx much.
what I was able to figure out from the list was only the appearance light with this script but need assistance with the rest of it.
tell application “System Events”
tell appearance preferences
set dark mode to false
end tell
end tell