Re: Time Verification
Re: Time Verification
- Subject: Re: Time Verification
- From: Saline Erik <email@hidden>
- Date: Thu, 20 Apr 2006 12:26:09 -0700
Thanks Adam,
With a few modifications this script works great. Thank you for your
knowledge.
Erik
On Apr 17, 2006, at 3:58 PM, Adam Bell wrote:
Time is synchronized in unix system by a daemon called ntpd, which
I don't know how to use.
If time to the nearest minutes is OK, the script below works for
me. Look up the exact name of a place in your time zone at http://
www.timeanddate.com/worldclock/, and enter that where I've got New
York in the script below to get the time to the nearest minute:
set t to (do shell script "curl http://www.timeanddate.com/
worldclock/")
set tid to text item delimiters
set text item delimiters to "New York"
set ht to text item 2 of t
set text item delimiters to tid
tell ht to set tn to word 15 & ":" & word 16 & space & (word 17)
On 4/17/06, Saline Erik <email@hidden> wrote: True. How
frequently is it checked? I have not been able to
determine this accurately. We have many G3 iMacs with dead
batteries, once the power is out the clock is set to any odd date and
time. I have seen many records in our DBs with inaccurate dates.
Also a lot of our data is using calculations involving the date and
time. It is odd to see that a job in our plant took -7777 days for
us to complete. We have set every computer with the Set Date & Time
Automatically. The problem still continues. This apple script will
help us with the time the power is restored to the time the clock is
checked then corrected.
Erik
On Apr 17, 2006, at 2:35 PM, Adam Bell wrote:
> I assume you know that the Date and Time Preference panel has a
> check box: "Set date & time automatically". When checked, your time
> is checked frequently enough to assure that (current time) in a
> script is very close to correct.
>
> On 4/17/06, Saline Erik <email@hidden> wrote: We currently
> are using Filemaker, it has the ability to run any Apple
> Script we write.
>
> Is there any way Apple Script can compare the current time of the
> computer to an external time server, i.e. time.apple.com? It would
> also be nice to have the Script to update the computer clock if
it is
> off by a day. Minutes and hours are not the important. If it can
> not update the computer clock we can get Filemaker to show a message
> that the clock is off and call us, then quit.
>
> Is this possible before I start to find an answer?
>
>
>
> Erik
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list (Applescript-
> email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40gmail.com
>
> This email sent to email@hidden
>
>
>
> --
> Some minds remain open long enough for a truth to both enter and
> leave without processing.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list (Applescript-
> email@hidden)
> Help/Unsubscribe/Update your Subscription:
> 40pen-tec.com
>
> This email sent to email@hidden
--
Some minds remain open long enough for a truth to both enter and
leave without processing.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
40pen-tec.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden