Re: A few questions about dates
Re: A few questions about dates
- Subject: Re: A few questions about dates
- From: Philip Aker <email@hidden>
- Date: Tue, 29 Aug 2006 17:28:06 -0700
On 2006-08-29, at 16:55:51, Nigel Garvey wrote:
Another method, which doesn't require a hack, is:
on date_as_seconds(d)
set fRef to (open for access file ((path to temporary items as
Unicode text) & "date.dat") with write permission)
try
set eof fRef to 0
write d to fRef
set s to (read fRef from 1 as double integer)
end try
close access fRef
return s
end date_as_seconds
date_as_seconds(current date)
do shell script "echo 'puts [clock seconds]' | tclsh"
Philip Aker
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