Subscribe~/Library/Preferences/ByHost/com.apple.screensaver.[hardwareaddress].plist file. The hardware address is the MAC address of the primary network interface (en0). If you lock this file, you will prevent users from changing any of their screensaver options. A better way to go about locking down the specific setting would be to create a LaunchAgent that will re-set the proper idleTime whenever it detects the file has changed.[?xml version="1.0" encoding="UTF-8"?>
[!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
[plist version="1.0">
[dict>
[key>Label[/key>
[string>com.company.savertime[/string>
[key>ProgramArguments[/key>
[array>
[string>defaults[/string>
[string>-currentHost[/string>
[string>write[/string>
[string>com.apple.screensaver[/string>
[string>idleTime[/string>
[string>-int[/string>
[string>300[/string>
[/array>
[key>QueueDirectories[/key>
[array/>
[key>RunAtLoad[/key>
[true/>
[key>WatchPaths[/key>
[array>
[string>~/Library/Preferences/ByHost[/string>
[/array>
[/dict>
[/plist>
You are not logged in, either login or create an account to post comments
posted by hummercash at 2:05 PM on October 1