AppleScript to Change Date & Time

Hi,

Sorry if this is a newbie question, but I was wondering if there was a script that’d allow me to change the date and time in my System Perfs without having to do it directly?

Thanks.

I don’t think this is a newbie question. The solution below requires an admin password:

Jon


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

Thanks a lot!

I appreciate the help. Just wondering, do you know how to make a script so that it automatically synchronizes with Apple’s Network Time? Thanks.

This will sync with Apple’s network time server. Again, you’ll need a password:

You could hardcode your password into the script (not recommended):

Jon


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

Thanks a lot!