So far my project had been relying on the following commands in order to tweak screensaver settings:
defaults write com.apple.screensaver askForPasswordDelay 0
defaults write com.apple.screensaver askForPassword true
As of macOS High Sierra (10.13) it seems like these settings are no longer stored in com.apple.screensaver
I'd like to avoid Apple Script to achieve such thing, any suggestions?
The system level screen saver folder is located in the /System/ folder and any screen saver located in the directory will be included on all other user accounts on the Mac. This is also where the default screen savers are located in Mac OS, for example the Flurry or Floating Message screen savers.
Click the System Preferences menu item. Click the “Desktop & Screen Saver” icon. Click the Screen Saver tab. Select any screen saver in the column on the left.
Victor Vrantchan explains this in a great blog post here:
https://blog.kolide.com/screensaver-security-on-macos-10-13-is-broken-a385726e2ae2
In summary you cant query but you can mange.:
Until Apple resolves this bug, screensaver security/lock settings must be managed carefully. More specifically:
- Enforce the profile ASAP, during initial bootstrap.
- Make sure the askForPasswordDelay key is used in the profile.
Using defaults write
no longer works as of 10.13.
http://www.openradar.me/35462422
You can use this gist to accomplish it using profiles instead: https://gist.github.com/mcw0933/21b8a9e292e83c69931f5de0d2ae1883
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With