Re: Set Date & Time Automatically preference
Re: Set Date & Time Automatically preference
- Subject: Re: Set Date & Time Automatically preference
- From: Axel Luttgens <email@hidden>
- Date: Fri, 16 Nov 2007 12:32:51 +0100
On 16/11/07 7:23, Reese, Stevan wrote:
In /etc/hostconfig, toggle TIMESYNC=-YES-, TIMESYNC=-NO-.
To change the time servers, edit /etc/ntp.conf and in Leopard you
probably need to also edit /etc/ntp.conf.applesaved
stevan
On ThuNov/15/07 4:26 PM, "Marconi" <email@hidden> wrote:
In the Date & Time pref pane, these's a check box to use a Network
Time server (Set date & time automatically). I've been unable to
figure out where this settings is kept. It does not seem to be in any
preference file I can find. (I'd wanted to do a defaults write to
set/unset it.)
I'm needing to toggle this via a script but I simply cannot find out
where this setting lives.
Anyone know?
And, of course, for the above changes to be taken into account, some
additional action is required.
As of Tiger and previous versions of the OS, one could run following
command in Terminal:
sudo /sbin/SystemStarter restart 'Network Time'
or, in an AppleScript script:
do shell script "/sbin/SystemStarter restart 'Network Time'" with
administrator privileges
Starting with Leopard, NTP seems to have been moved to launchd.
This would mean to use command "launchctl" with appropriate arguments,
instead of command "SystemStarter".
Are you running Leopard?
HTH,
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden